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

    (@awelzel)

    I’m sorry, but at a first glance I can’t see why it doesn’t work. However, on the non-working site there is another theme in use – maybe this causes a conflict.

    Technically the images are not “seen” by Lightbox with Photoswipe, since the required attributes “data-width” and “data-height” in the image links are missing. These get added by Lightbox with Photoswipe for every linked image on the page and will be used by the frontend JavaScript part to open an image within the lightbox when clicking it. Maybe some other plugin is calling ob_end_flush() before Lightbox with Photoswipe had a chance to use read the output buffer and add the required attributes to the links.

    I would first try to disable all other plugins which are not absolutely neccessary to find out if there is any compatibility issue.

    If nothing else helps you can also try to add “data-width” and “data-height” manually to the image links as a workaround – if this is possible:

    <a .... data-width="1200" data-height="900">

    The values must be the exact width and height of the full sized image.

    For a further analysis I would need to have a copy of the whole website so I can test this in a debugger.

    • This reply was modified 4 years, 11 months ago by Arno Welzel.
    Plugin Author Arno Welzel

    (@awelzel)

    As Lightbox with PhotoSwipe got some major updates in the buffer handling – can you please let me know if this problem still exists?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Photoswipe not working with Slick Carousel’ is closed to new replies.