Title: One gallery on two pages using shortcode
Last modified: January 27, 2020

---

# One gallery on two pages using shortcode

 *  Resolved [Jay](https://wordpress.org/support/users/jaypozo/)
 * (@jaypozo)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/one-gallery-on-two-pages-using-shortcode/)
 * We have a site that uses the same gallery on two different pages:
 * [https://casaplayamaya.com/](https://casaplayamaya.com/)
    [https://casaplayamaya.com/property-info](https://casaplayamaya.com/property-info)
 * The galleries each use the “single thumbnail gallery” template, which is how 
   they are displayed on the first page, [https://casaplayamaya.com/](https://casaplayamaya.com/).
 * On the second page, “Property Info”, we use a shortcode to override the way the
   gallery looks, template=”image-viewer”. Since this is a live site, only the “
   Casita 4” gallery on the “Property Info” page is embedded with the template=”
   image-viewer” override in the shortcode so you should look at that one.
 * The gallery looks fine, but when you click on the gallery only a single image
   opens, not the lightbox.
 * I’ve cleared the site cache
    I’ve cleared the gallery html and css caches On 
   foobox, I’ve tried disable other lightboxes and “exclude foobox assets” is not
   checked.
 * Thanks in advance!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fone-gallery-on-two-pages-using-shortcode%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [Jay](https://wordpress.org/support/users/jaypozo/)
 * (@jaypozo)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/one-gallery-on-two-pages-using-shortcode/#post-12370790)
 * To note: we are embedding the shortcode in an Avada page builder. Going to investigate
   that.
 *  Thread Starter [Jay](https://wordpress.org/support/users/jaypozo/)
 * (@jaypozo)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/one-gallery-on-two-pages-using-shortcode/#post-12370801)
 * Disabled lightbox in Avada and no luck.
 *  [phillcoxon](https://wordpress.org/support/users/phillcoxon/)
 * (@phillcoxon)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/one-gallery-on-two-pages-using-shortcode/#post-12378794)
 * Hi [@jaypozo](https://wordpress.org/support/users/jaypozo/),
 * Thanks for contacting FooPlugins.
 * Would you please edit your “Casita 4” gallery and confirm under General settings
   that you have the Lightbox option set to “FooBox”?
 * If you do and FooBox is still not being triggered please let me know and we’ll
   look into this further for you.
 * Great looking site by the way!
 *  Thread Starter [Jay](https://wordpress.org/support/users/jaypozo/)
 * (@jaypozo)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/one-gallery-on-two-pages-using-shortcode/#post-12379318)
 * Hi [@phillcoxon](https://wordpress.org/support/users/phillcoxon/) thanks for 
   the response. The gallery settings for “Casita 4” did already have the Lightbox
   option set to “FooBox”.
 * Thanks
 *  [phillcoxon](https://wordpress.org/support/users/phillcoxon/)
 * (@phillcoxon)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/one-gallery-on-two-pages-using-shortcode/#post-12419520)
 * Hi [@jaypozo](https://wordpress.org/support/users/jaypozo/),
 * Apologies for the delay.
 * [@steveush](https://wordpress.org/support/users/steveush/) – are you able to 
   review this and give feedback on why FooBox isn’t opening for the single thumbnail
   gallery template on [https://casaplayamaya.com/property-info/](https://casaplayamaya.com/property-info/)
   under “Casita Four”?
 * Thanks.
 *  Thread Starter [Jay](https://wordpress.org/support/users/jaypozo/)
 * (@jaypozo)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/one-gallery-on-two-pages-using-shortcode/#post-12427632)
 * Thanks, we would love to get this solved. [@phillcoxon](https://wordpress.org/support/users/phillcoxon/)
   [@steveush](https://wordpress.org/support/users/steveush/)
 *  Plugin Author [steveush](https://wordpress.org/support/users/steveush/)
 * (@steveush)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/one-gallery-on-two-pages-using-shortcode/#post-12429936)
 * Hi [@jaypozo](https://wordpress.org/support/users/jaypozo/),
 * This is definitely something to do with the **General > Lightbox** option. The
   gallery at the moment is being output with the CSS class `foogallery-lightbox-
   unknown` where it should be `foogallery-lightbox-foobox` if the setting were 
   properly saved/output.
 * Previously you said the **General > Lightbox** was already set to FooBox, could
   you please try setting it to another value, saving and then setting it back? 
   The value of unknown is only used by the gallery if it thinks the option has 
   not been set.
 * If switching the option and saving again does not work then the issue may lie
   in the shortcode overrides themselves. For that our PHP developer will need to
   take a look to figure out how the value is being lost.
 * Thanks
 *  Plugin Author [bradvin](https://wordpress.org/support/users/bradvin/)
 * (@bradvin)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/one-gallery-on-two-pages-using-shortcode/#post-12437657)
 * hi [@jaypozo](https://wordpress.org/support/users/jaypozo/)
 * I think I know why this is happening. The settings for the gallery are stored
   in postmeta and use the name of the gallery template in their name, so when you
   change the gallery template, it is loosing setting for the lightbox (and everything
   else).
 * I will need to build in a fix to cater for this. I have added it to the backlog
   and it will be released in the next version
 *  Thread Starter [Jay](https://wordpress.org/support/users/jaypozo/)
 * (@jaypozo)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/one-gallery-on-two-pages-using-shortcode/#post-12494459)
 * Hi there, any idea when that update will be release? Thanks!
 *  Thread Starter [Jay](https://wordpress.org/support/users/jaypozo/)
 * (@jaypozo)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/one-gallery-on-two-pages-using-shortcode/#post-12505454)
 * [@bradvin](https://wordpress.org/support/users/bradvin/) [@steveush](https://wordpress.org/support/users/steveush/)
   [@phillcoxon](https://wordpress.org/support/users/phillcoxon/) would love to 
   know a timeline on this please so we can plan something in the interim if needed.
   Thanks
 *  Plugin Author [bradvin](https://wordpress.org/support/users/bradvin/)
 * (@bradvin)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/one-gallery-on-two-pages-using-shortcode/#post-12509461)
 * [@jaypozo](https://wordpress.org/support/users/jaypozo/) – I have fixed this 
   bug, and it will be released in the next version of the plugin. We are busy with
   a major release, so we are busy testing. In the meantime, you can test the new
   version by downloading from here : [https://we.tl/t-wDu2HK0sWR](https://we.tl/t-wDu2HK0sWR)
 * Let me know if it resolves your issue. I did test you exact scenario but is always
   good to get confirmation
 *  Thread Starter [Jay](https://wordpress.org/support/users/jaypozo/)
 * (@jaypozo)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/one-gallery-on-two-pages-using-shortcode/#post-12509644)
 * Awesome, this worked. Looking forward to the release, good luck!

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

The topic ‘One gallery on two pages using shortcode’ is closed to new replies.

 * ![](https://ps.w.org/foogallery/assets/icon-256x256.gif?rev=2602542)
 * [Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel](https://wordpress.org/plugins/foogallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/foogallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/foogallery/)
 * [Active Topics](https://wordpress.org/support/plugin/foogallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/foogallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/foogallery/reviews/)

 * 12 replies
 * 4 participants
 * Last reply from: [Jay](https://wordpress.org/support/users/jaypozo/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/one-gallery-on-two-pages-using-shortcode/#post-12509644)
 * Status: resolved