Title: Add multiple &#8216;Image&#8217; blocks to the same lightbox?
Last modified: December 18, 2022

---

# Add multiple ‘Image’ blocks to the same lightbox?

 *  Resolved [C13](https://wordpress.org/support/users/c13creative/)
 * (@c13creative)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/add-multiple-image-blocks-to-the-same-lightbox/)
 * Is it possible to add images from multiple ‘Image’ blocks to one lightbox? I 
   would like users to be able to click on one image and be able to cycle through
   images from different parts of the page.
 * I love how lightweight and non-dependant the plugin is, as I try to avoid jQuery
   like it’s COVID.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Johannes Kinast](https://wordpress.org/support/users/goaroundagain/)
 * (@goaroundagain)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/add-multiple-image-blocks-to-the-same-lightbox/#post-16303276)
 * Hi [@c13creative](https://wordpress.org/support/users/c13creative/),
 * this is possible but you have to change the selector to e.g. `.entry-content`(
   it depends on your theme): [https://wordpress.org/plugins/gallery-block-lightbox/#how%20can%20i%20add%20my%20own%20block%3F%20%2F%20can%20i%20change%20the%20css%20selector%3F](https://wordpress.org/plugins/gallery-block-lightbox/#how%20can%20i%20add%20my%20own%20block%3F%20%2F%20can%20i%20change%20the%20css%20selector%3F)
 *     ```wp-block-code
       add_filter( 'baguettebox_selector', function( $selector ) { return '.entry-content'; } )
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Add multiple ‘Image’ blocks to the same lightbox?’ is closed to new replies.

 * ![](https://ps.w.org/gallery-block-lightbox/assets/icon.svg?rev=2788519)
 * [Lightbox for Gallery & Image Block](https://wordpress.org/plugins/gallery-block-lightbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gallery-block-lightbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gallery-block-lightbox/)
 * [Active Topics](https://wordpress.org/support/plugin/gallery-block-lightbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gallery-block-lightbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gallery-block-lightbox/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Johannes Kinast](https://wordpress.org/support/users/goaroundagain/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/add-multiple-image-blocks-to-the-same-lightbox/#post-16303276)
 * Status: resolved