Title: [Plugin: Flickr Gallery] lightbox doesn&#039;t work
Last modified: August 19, 2016

---

# [Plugin: Flickr Gallery] lightbox doesn't work

 *  [oldcastle](https://wordpress.org/support/users/oldcastle/)
 * (@oldcastle)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-flickr-gallery-lightbox-doesnt-work/)
 * Hi,
 * As you can see here [http://jilliz.com/salaya/presidential-suite/](http://jilliz.com/salaya/presidential-suite/)
   
   the lightbox is not working.
 * Any idea?
    Cheers,
 * [http://wordpress.org/extend/plugins/flickr-gallery/](http://wordpress.org/extend/plugins/flickr-gallery/)

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

 *  [Sea Jay](https://wordpress.org/support/users/jcollier/)
 * (@jcollier)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-flickr-gallery-lightbox-doesnt-work/#post-1697477)
 * Similar problem.
 * The lightbox is working on one of my sites …
 * <[http://jaycollier.net&gt](http://jaycollier.net&gt);
 * … and not the other …
 * <[http://wgbhalumni.org/&gt](http://wgbhalumni.org/&gt);
 * The only difference is that the one not working is a search query:
 * [flickr-gallery mode=”search” per_page=”6″ pagination=”0″ group_id=”397450@N23″]
 *  Plugin Author [DanCoulter](https://wordpress.org/support/users/dancoulter/)
 * (@dancoulter)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-flickr-gallery-lightbox-doesnt-work/#post-1697585)
 * [@oldcastle](https://wordpress.org/support/users/oldcastle/)
    Your theme is throwing
   a Javascript error. That’s why it’s not working.
 *  Plugin Author [DanCoulter](https://wordpress.org/support/users/dancoulter/)
 * (@dancoulter)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-flickr-gallery-lightbox-doesnt-work/#post-1697586)
 * [@jcollier](https://wordpress.org/support/users/jcollier/)
 * Something in your theme is inserting HTML tags into the Javascript block. I don’t
   know why, that’s not happening on any of my sites, so I don’t think it’s the 
   default the_content filter.
 *  [alpha_llama](https://wordpress.org/support/users/alpha_llama/)
 * (@alpha_llama)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-flickr-gallery-lightbox-doesnt-work/#post-1697608)
 * Firstly, this may be my fav WP plugin ever made. Thanks a ton DanCoulter.
 * I’m having similar issues with Lightbox. (I’m thinking it must be theme-related
   cause it worked wonderfully before I changed it.)
 * Any ideas how to troubleshoot? Here’s a page on my site with a broken lightbox
   flickr gallery: [http://eckcite.com/2010/07/ccbar-ranch/](http://eckcite.com/2010/07/ccbar-ranch/).
   I’m using this theme: [http://wpcrunchy.com/our-themes/obscure](http://wpcrunchy.com/our-themes/obscure)
 * Thanks in advance. Using flickr-gallery.1.5.2 btw
 *  [b41l3y](https://wordpress.org/support/users/b41l3y/)
 * (@b41l3y)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-flickr-gallery-lightbox-doesnt-work/#post-1697609)
 * Hi All-
 * I was having a similar issue and noticed that I did not have jQuery included 
   correctly in my theme.
 * This helped out and solved my issue:
    [http://digwp.com/2009/06/including-jquery-in-wordpress-the-right-way/](http://digwp.com/2009/06/including-jquery-in-wordpress-the-right-way/)
 * Cheers!
 *  [alpha_llama](https://wordpress.org/support/users/alpha_llama/)
 * (@alpha_llama)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-flickr-gallery-lightbox-doesnt-work/#post-1697612)
 * Okay, I think I’m gaining on it:
 * I noticed for my theme that _does not_ work with lightbox, theme-specific scripts
   are instantiated with script tags (no php here) and then dumped at wp_head like
   this:
 * > `<script type="text/javascript" src= ... </script>`
 * I changed themes back to the one that worked with lightbox, and noticed that 
   theme-specific scripts are called with `wp_enqueue_script`.
 * I’m kind of a php and jQuery n00b, but I’m thinking I need to tweak my broken
   theme use wp_enque_script instead. I’ll make a backup, change things up, and 
   check back after I do. Meanwhile, any suggestions? Am i on the right track here?
 *  [alpha_llama](https://wordpress.org/support/users/alpha_llama/)
 * (@alpha_llama)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-flickr-gallery-lightbox-doesnt-work/#post-1697613)
 * Getting Close. I `wp_enqueue_script`‘ed all of the theme-specific scripts, and
   now instead of just linking to Flickr, the overlay generates and the little loading
   animation comes up. But that’s where it stops. The animation will play forever
   and my flickr images will never load in the flightbox.
 * The end of my <head> looks like this now:
 * > wp_enqueue_script(‘jquery’);
   >  enqueue_the_scripts(); wp_head();
 * If I swap the order of the last 2 lines, it breaks to just linking to flickr.
   Help!
 *  Plugin Author [DanCoulter](https://wordpress.org/support/users/dancoulter/)
 * (@dancoulter)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-flickr-gallery-lightbox-doesnt-work/#post-1697616)
 * [@alpha_llama](https://wordpress.org/support/users/alpha_llama/)
 * You’ve got a Javascript error on that page that might be breaking it. You’ve 
   got a home page specific call to the jQuery cycle plugin being called on every
   page. You need to make sure that the call to that plugin only happens on the 
   home page. You can wrap it in something like this:
 *     ```
       <?php if ( is_front_page() ) : ?>
       jQuery("#foo").cycle();
       <?php endif; ?>
       ```
   
 *  [alpha_llama](https://wordpress.org/support/users/alpha_llama/)
 * (@alpha_llama)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-flickr-gallery-lightbox-doesnt-work/#post-1697617)
 * I got it working this morning (probably about the time of prev post) by systematically
   turning on/off all js scripts. My `enqueue_the_scripts()` function is pretty 
   much this:
 *     ```
       wp_enqueue_script('script1','path/to/file',array('jquery'));
       wp_enqueue_script('script2','path/to/file',array('jquery'));
       ...
       wp_enqueue_script('scriptN','path/to/file',array('jquery'))
       ```
   
 * and the lightbox came alive when I commented out the enqueue for the theme’s 
   easing script! Coincidentally, I guess I wasn’t using it anyway.
 * [@dancoulter](https://wordpress.org/support/users/dancoulter/)
 * Thanks a lot. You’re right, I don’t need that call anywhere _except_ the home
   page. I’ll fix that, too. Can’t find it now, but after reading another one of
   your posts here, [99% of the time its another js breaking lightbox] I was able
   to narrow it down. Thanks again for such an awesome plugin!

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

The topic ‘[Plugin: Flickr Gallery] lightbox doesn't work’ is closed to new replies.

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

 * 9 replies
 * 5 participants
 * Last reply from: [alpha_llama](https://wordpress.org/support/users/alpha_llama/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-flickr-gallery-lightbox-doesnt-work/#post-1697617)
 * Status: not resolved