• Resolved Jan Martin

    (@jan-martin-1)


    Dear Support,

    I am running into problems with prettyPhoto when using multiple galleries on one page. I should mention that there are no problems if I instead select any of the other Lightbox Script in General Settings, i.e. SwipeBox, FancyBox, Nivo Lightbox, Image Lightbox and TosRUs.

    If I select prettyPhoto, then the Lightbox will not be enabled and WordPress regular media link will be loaded instead of the prettyPhoto lightbox.

    I am using Responsive Lightbox Version 1.6.3 with the latest WordPress.

    These are some related settings that works for all lightboxes, except for prettyPhoto:

    General Settings > Selector is set to lightbox.
    General Settings > Image links is unchecked
    General Settings > Single images as gallery is unchecked
    General Settings > Galleries is unchecked

    The HTML looks like:

    <a href="image1.jpg” rel="lightbox-gallery-1" data-rel="lightbox-gallery-1"><img src=“thumb1.jpg” /></a>
    <a href="image2.jpg" rel="lightbox-gallery-1" data-rel="lightbox-gallery-1"><img src="thumb2.jpg" /></a>
    <a href="image3.jpg" rel="lightbox-gallery-1" data-rel="lightbox-gallery-1"><img src="thumb3.jpg" /></a>
    
    <a href="image4.jpg" rel="lightbox-gallery-2” data-rel="lightbox-gallery-2”><img src="thumb4.jpg" /></a>
    <a href="image5.jpg" rel="lightbox-gallery-2” data-rel="lightbox-gallery-2”><img src="thumb5.jpg" /></a>
    <a href="image6.jpg" rel="lightbox-gallery-2” data-rel="lightbox-gallery-2”><img src="thumb6.jpg" /></a>

    It appears to me that the problem is with the Selector when using prettyPhoto, as follows:
    – Setting the Selector to the standard correct value lightbox, does not work.
    – If I for example incorrectly set the Selector to lightbox-gallery-1, then the prettyPhoto lightbox will work fine on the first gallery, but not on the second.
    – And setting the Selector to lightbox-gallery-2, obviously will only enable the prettyPhoto lightbox for gallery 2, but will not work for gallery 1.

    So obviously your code is having problem to locate the corresponding rel/data-rel images unless the Selector is set to exactly match the rel/data-rel value.

    As I mentioned, this problem only occurs for prettyPhoto.

    It does not seem to be a theme-issue or conflicting plugins as I’ve tried other themes and deactivated plugins.

    Any suggested solution?

    Cheers

    https://www.ads-software.com/plugins/responsive-lightbox/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author dFactory

    (@dfactory)

    Looks like we have a bug here Jan,

    I’ve tested this and may confirm – if you create that kind of gallery in post content it will not work properly. It works if used added in your theme files, but not if it exists in post content.

    We’ll provide a fix in the next release.

    Regards,
    Bartosz / dfactory

    Thread Starter Jan Martin

    (@jan-martin-1)

    Thanks a lot Bartosz for the very quick reply and great to hear that there will be a fix for it.

    I’ve gone through all other lightbox plugins out there, and your plugin rocks.

    Keep up the great work!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PrettyPhoto not working for multiple galleries on same page’ is closed to new replies.