• Resolved somePaulo

    (@finomeno)


    My page contains a standard WP/Gutenberg gallery of 31 images, but when I open it in the lightbox, I see there are 62 images in it. The whole gallery is repeated. Not each image twice one after the other, but images 1 to 31 and then 1 to 31 again.

    Since I have the gallery set to allow infinite loop, it doesn’t matter visually except for the counter, but when I disable the loop, I see the gallery repeated twice.

    These are the only 31 images linking to image files on the entire site, the only gallery. It sits inside a slide of the GutenSlider plugin, which makes the whole site one big slider. The gallery slide is accessible through the dropdown menu or by flipping to the third slide from the end.

    Disabling/re-enabling; uninstalling/re-installing; clearing caches; removing gallery altogether, saving page, and re-creating gallery does not help.

    Any clues greatly appreciated. Thank you!

    • This topic was modified 4 years, 4 months ago by somePaulo.

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

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

    (@awelzel)

    Gutenberg gallery blocks usually work without any problem, as you can see on my demo site:

    https://wordpress-demo.arnowelzel.de/lightbox-with-single-caption-for-multiple-images/

    https://wordpress-demo.arnowelzel.de/lightbox-with-photoswipe/

    It looks like all image links on are repeated on the server side for some kind of lazy loading mechanism but eventually get removed when the lazy loading script decided that the non-script-versions are not needed.

    If there is any “lazy loading” option, try to turn this off, just to verify if anything changes. If there is no such option or if this won’t change anything I would have to add a workaround in my plugin that every image link is only used once even if it is repeated twice or more on the page.

    My plugin is for free – but as you run a paid service I’d be very grateful if you think about a donation for support, thank you!

    Thread Starter somePaulo

    (@finomeno)

    The site uses the Optimole image optimization plugin, which has a lazy loading option. I tried disabling that (and clearing the cache afterwards), but it didn’t help.

    I also tried enabling the ‘Add native lazy loading to images’ option and separately disabling the ‘Show WordPress galleries and Gutenberg gallery blocks in separate lightboxes’ option. All to no avail.

    So my guess is either Gutenslider or Optimole are to blame here.

    As for your request, as soon as the site is ironed out and my client pays me, I’ll gladly contribute to support your work.

    Plugin Author Arno Welzel

    (@awelzel)

    Thanks for the feedback. I’ll add an option for the next update to ignore copies of images so each image will only be used once even if it is included multiple times.

    Plugin Author Arno Welzel

    (@awelzel)

    Version 3.0.7 will now ignore multiple links to the same image and will use every image only once.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Gallery repeats twice in lightbox’ is closed to new replies.