[Plugin: Flickr Gallery] lightbox doesn't work
As you can see here http://jilliz.com/salaya/presidential-suite/
the lightbox is not working.
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.)
Thanks in advance. Using flickr-gallery.1.5.2 btw
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:
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:
I changed themes back to the one that worked with lightbox, and noticed that theme-specific scripts are called with
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?
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:
If I swap the order of the last 2 lines, it breaks to just linking to flickr. Help!
<?php if ( is_front_page() ) : ?> jQuery("#foo").cycle(); <?php endif; ?>
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.
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!
- The topic ‘[Plugin: Flickr Gallery] lightbox doesn't work’ is closed to new replies.