• Resolved raoul_k

    (@raoul_k)


    The PhotoSwipe lightbox works fine when clicking an image on my site. However, it just works once. If open the lightbox and then close it, it won’t open the lightbox again when clicking on an image. Any ideas why this is happening?

    The page I need help with: [log in to see the link]

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

    (@awelzel)

    Since it works fine, when you close the lightbox by pressing the [Esc] key, it is most likely you have another lightbox installed which also opens “invisible” and covers the clickable area. This will also close when it detects a press of the [Esc] key but will stay “open” when you click the “X” symbol (because the click is only handled by the lightbox which was opened last).

    Sometimes image galleries or themes come with their own version of Photoswipe. In your case I can find “Magnific Popup” as additional click handler on the images (https://dimsemenov.com/plugins/magnific-popup/). Also the theme itself registered a click handler as well. You can find such things on your own by using the web developer tools of the browser, examine one of the images in question and check the “Event Listeners” tab of the web developer tools.

    Maybe your the gallery or the theme you are using, integrates this. Check the theme or gallery settings if there is an option to disable it or ask the creator of the theme or gallery how to disable the integrated lightbox popup.

    Thread Starter raoul_k

    (@raoul_k)

    Dear Arno.

    Thank you so much for your fast and helpful support. You were absolutely right that this was indeed because the theme I was using was loading another lightbox, which I was able to remove! Thank you for your help.

    I’ve noticed that after closing the lightbox, there’s sometimes a certain flicker/jumpiness; the content seems to jump. I wasn’t able to detect why that’s happening, do you have any idea?
    https://www.dropbox.com/scl/fi/p45vbkha90tyeknngaadb/jumpiness.mov?rlkey=659uxipvt2eqdkn60t3l8l9rl&st=d50570wz&dl=0

    Also, I read your FAQ’s about the “zoom animation” (from the thumbnail to the final image when) being disabled because of an issue with square thumbnails. Is there a way to enable the zoom animation (as I’m not using square thumbnails)?

    Again, I appreciate your help!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Lightbox only opens once’ is closed to new replies.