• Resolved migueleste

    (@migueleste)


    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

    https://www.ads-software.com/extend/plugins/wp-jquery-lightbox/

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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"]'));

    Thread Starter migueleste

    (@migueleste)

    Hi,

    Removing the “any ID” worked.

    Thanks!

    miguel

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP jQuery Lightbox] Not working in sidebar’ is closed to new replies.