WordPress.org

Ready to get started?Download WordPress

Forums

WP jQuery Lightbox
Lightbox not launching from thumbnails in table (2 posts)

  1. jryrob
    Member
    Posted 1 year ago #

    I'm rebuilding my website on the WordPress platform using Weaver II as my base theme. I have everything working except getting lightbox to launch when a thumbnail is clicked. I've been using Lightbox2 for about 18 months on (http://jryanroberts.com/). I copied the code and made some adjustments to get it to render correctly on my wordpress version (not live yet). Below is the code for one of the pages. Any ideas why the Lightbox isn't engaging? I'm not using native galleries but rather the code below to fetch the images. Many thanks in advance.

    <table width="920" border="0" cellspacing="1" cellpadding="1">
        <tr>
          <td><a href="images/beauty/beauty_photo_0093.jpg" rel="lightbox[a]"><img src="images/beauty/beauty_photo_t0093.jpg"></a></td>
          <td><a href="images/beauty/beauty_photo_0094.jpg" rel="lightbox[a]"><img src="images/beauty/beauty_photo_t0094.jpg"></a></td>
          <td><a href="images/beauty/beauty_photo_0095.jpg" rel="lightbox[a]"><img src="images/beauty/beauty_photo_t0095.jpg"></a></td>
          <td><a href="images/beauty/beauty_photo_0098.jpg" rel="lightbox[a]"><img src="images/beauty/beauty_photo_t0098.jpg"></a></td>
        </tr>

    http://wordpress.org/extend/plugins/wp-jquery-lightbox/

  2. ulfben
    Member
    Plugin Author

    Posted 1 year ago #

    Three options;
    You didn't include jQuery
    You didn't include wp-jquery-lightbox
    You didn't initialize wp-jquery-lightbox

    All of these things are of course automated if your theme is well behaved. Ergo; disable your theme and run the default Twentytwelve or whatever it's called these days.

    If it works in the default theme, add wp_head() and wp_footer() to your theme.

    If it DOESN'T work with the default theme, disable all other plugins and see if that makes a difference. Activate them one after another until you find what breaks your site.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.