Title: Different lightboxes on same page
Last modified: August 22, 2016

---

# Different lightboxes on same page

 *  Resolved [Debora1976](https://wordpress.org/support/users/debora1976/)
 * (@debora1976)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/different-lightboxes-on-same-page/)
 * Hi,
 * I really like Simple Lightbox and everything is working fine, but I have one 
   question though.
 * I’m using two lightbox galleries on one page, and when I click a picture in gallerie
   one the pictures from gallery two are added to this gallery.
 * Could you tell me how I can change this?
 * Regards,
    Debby
 * [https://wordpress.org/plugins/simple-lightbox/](https://wordpress.org/plugins/simple-lightbox/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Archetyped](https://wordpress.org/support/users/archetyped/)
 * (@archetyped)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/different-lightboxes-on-same-page/#post-5783532)
 * Hi, loading multiple lightboxes on the same page can cause conflicts because 
   they are usually designed to activate the same links (e.g. images).
 * However, you can disable SLB using the `[slb_exclude]` shortcode to stop SLB 
   from activating specific links. See here for [more information on `[slb_exclude]`](http://archetyped.com/lab/slb-2-3-0/).
 *  Thread Starter [Debora1976](https://wordpress.org/support/users/debora1976/)
 * (@debora1976)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/different-lightboxes-on-same-page/#post-5783538)
 * Hi, thanks so far. I read the article, and I think I missed something.
    In my
   page I added this lines: {slb_group id=”group-2″}[gallery link="file" size="medium"
   ids="236,237,238"]{/slb_group}
 * and
 * {slb_group id=”group-1″}[gallery link="file" columns="2" size="medium" ids="142,143"]{/
   slb_group}
 * But that doesn’t work. Do I need to put some code in functions.php?
    I don’t 
   understand what code and where. Could you please help me, I guess we’re almost
   there.
 * Kind Regards,
    Debby
 *  Plugin Author [Archetyped](https://wordpress.org/support/users/archetyped/)
 * (@archetyped)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/different-lightboxes-on-same-page/#post-5783558)
 * Hi, there’s a note in the post about switching curly braces (`{`) with square
   braces (`[`) when using the shortcodes. Unfortunately, WordPress was messing 
   with the formatting when using square braces.
 * Make the switch and the shortcodes will work.
 * Also, there’s an option in SLB’s settings to automatically group galleries so
   you don’t have to manually add `[slb_group]` shortcodes.
 *  Thread Starter [Debora1976](https://wordpress.org/support/users/debora1976/)
 * (@debora1976)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/different-lightboxes-on-same-page/#post-5783560)
 * Now it works great! Thank you so much!!
 * Kind Regards,
    Debby
 *  Plugin Author [Archetyped](https://wordpress.org/support/users/archetyped/)
 * (@archetyped)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/different-lightboxes-on-same-page/#post-5783563)
 * Awesome, glad to hear it 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Different lightboxes on same page’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-lightbox.svg)
 * [Simple Lightbox](https://wordpress.org/plugins/simple-lightbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-lightbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-lightbox/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-lightbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-lightbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-lightbox/reviews/)

## Tags

 * [REL](https://wordpress.org/support/topic-tag/rel/)

 * 5 replies
 * 2 participants
 * Last reply from: [Archetyped](https://wordpress.org/support/users/archetyped/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/different-lightboxes-on-same-page/#post-5783563)
 * Status: resolved