WordPress.org

Ready to get started?Download WordPress

Forums

WP jQuery Lightbox
[resolved] Not working in sidebar (3 posts)

  1. migueleste
    Member
    Posted 2 years ago #

    Hi,

    First of all, let me thank you for your work on this plugin. It's great!

    I've decided to move a gallery I had in post body to the sidebar and it stopped working.

    what am I doing?

    well, I've instaled the "PHP Code widget" and dragged it to the sidebar, then I add <?php echo do_shortcode('[gallery]'); ?>

    and..that's it.

    The gallery is correctly displayed but the rel="lightbox" is not there. So when I click it, I jump to the picture page.

    I've read through the forum and it seem you suggested using jqlb_apply_lightbox(do_shortcode('[gallery columns="4" link="file"]'), "any ID");

    I've used this code in the PHP call..but still not working.

    Can you help?

    cheers,
    miguel

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

  2. ulfben
    Member
    Plugin Author

    Posted 2 years ago #

    So when I click it, I jump to the picture page.

    The link must point to the image. Not a page. Thus; [gallery link="file"]

    Your second example seems correct. Make sure the output is indeed a gallery image links. If the shortcode output is correct, try removing ,"any ID" from the ligthbox-call:

    jqlb_apply_lightbox(do_shortcode('[gallery columns="4" link="file"]'));

  3. migueleste
    Member
    Posted 2 years ago #

    Hi,

    Removing the "any ID" worked.

    Thanks!

    miguel

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic