# Lightbox display on a image gallery inside block

**URL:** <https://forum.pinegrow.com/t/lightbox-display-on-a-image-gallery-inside-block/10221>\
**Category:** Pinegrow WP\
**Created:** [January 9, 2025, 4:54pm UTC](https://forum.pinegrow.com/t/lightbox-display-on-a-image-gallery-inside-block/10221 "2025-01-09T16:54:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![veras](https://avatars.discourse-cdn.com/v4/letter/v/c57346/32.png) [@veras](https://forum.pinegrow.com/u/veras)\
**Post date:** [January 9, 2025, 4:54pm UTC](https://forum.pinegrow.com/t/lightbox-display-on-a-image-gallery-inside-block/10221/1 "2025-01-09T16:54:52Z")

</div>

I am working on small site and I need a light-box display on a small gallery. I would prefer it to be part of a block. I found this one: [Lightbox](https://franken-ui.dev/docs/lightbox)

… and it works as desired. Problem is with WP implementation. Block looks like this:

 ![Screenshot 2025-01-09 at 17.45.12](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/5/57725d72bbb06b2fa241e1873035d33c30e40900.png)

Lightbox targets images via #href … and here is the problem. I can change photos from WP media gallery, but cant target them for lightbox display.

Any idea how to get the desired effect. I would rather not use plugins.

---

<div class="post-metadata">

**Author:** ![veras](https://avatars.discourse-cdn.com/v4/letter/v/c57346/32.png) [@veras](https://forum.pinegrow.com/u/veras)\
**Post date:** [January 11, 2025, 10:13am UTC](https://forum.pinegrow.com/t/lightbox-display-on-a-image-gallery-inside-block/10221/2 "2025-01-11T10:13:13Z")

</div>

Managed to do make it work. Another problem is that block inside block editor is not displayed correctly. Maybe I should open another topic.
