Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter fruityoaty

    (@fruityoaty)

    Addendum: I have a NextGen Gallery grid of images in a sidebar widget. I was using another lightbox plugin which worked fine everywhere on my site (including sidebar)… but that plugin wasn’t very lightweight. That’s why I really want to switch to your plugin (awesome, so small).

    I hope you can address the issue, if possible.

    Plugin Author Matthew Petroff

    (@petroffm)

    Is the gallery in a text widget or some other special kind of widget? If it’s in a text widget, this is an easy fix.

    Thread Starter fruityoaty

    (@fruityoaty)

    The gallery is using NextGen Gallery widget that is part of NextCellent Gallery plugin (and NextGen Gallery plugin). I’ve tried about 4 or 5 lightbox plugins and they work on the images in the widgets – no problem.

    I’ve also tried images in text widgets… and Slenderbox doesn’t work either (clicking on thumbnail is supposed to pop-up larger image in lightbox).

    Thanks for the reply.

    Plugin Author Matthew Petroff

    (@petroffm)

    I just pushed version 1.1.2, which should now work with text widgets. There’s a chance it will also work with your gallery widget, but I doubt it. Since I designed Slenderbox to require a special attribute on image links to activate it, so one could choose to only use it on certain images on a page, the gallery widget output needs to be modified to add this. Unfortunately, the gallery widget you’re using seems to render directly to the page, so there’s no way for another plugin to alter its output.

    Thread Starter fruityoaty

    (@fruityoaty)

    Thanks for the quick response.

    Yes, it works on text widgets now, but unfortunately it did not work on NextGen Gallery widgets.

    Anyway, thanks for trying. ?? I will revert back to the other lightbox plugin I was using prior to Slenderbox.

    Thread Starter fruityoaty

    (@fruityoaty)

    Actually…. good news, I modified the NextGen Gallery plugin widget to manually add data-sbox=”REFERENCE” to the output.

    For NextCellent Gallery users, in class-ngg-gallery-widget.php, line 232:
    $out = '<a data-sbox="REFERENCE" href="' . $image->imageURL . '" title="' . $description . '" ' . $thumbcode . '>';

    Works for me! I’ll use your fine plugin now. ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Doesn't work on images in sidebar widget’ is closed to new replies.