• Resolved darthvader42

    (@darthvader42)


    The plugin is really great. Thanks to the good docs I’ve managed to display an album from Google Photos on my blog. On the page itself it looks fine.
    However when I click on the mosaic the lightbox opens as expected. But you’ll see each picture twice. I tried to change lightbox settings – without success.

    Any hint why I’m getting duplicated images in the lightbox?

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

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

    (@sayontan)

    This seems to be happening due to a different plugin. Let me explain:

    • In Photonic’s markup, for each image you have: a div, inside which is an a (i.e. an anchor, or a link), inside which is an img (the actual photo).
    • This is getting disturbed for your site. Do a “View Source” for your page. You will see that though each photo in Photonic’s markup shows up exactly once (there are 9 img tags in the gallery), you are getting some <br />, <p> and </p> tags. I am not sure if they are causing a problem, but they are likely to.
    • But the worrisome thing is, when you right-click on a photo in Chrome and select “Inspect”, you see that the image is duplicated. Basically a whole new <p> element is created and the image is being replicated over there.

    This behaviour happens if you have a separate JavaScript-based plugin that modifies your content. I am not familiar with what you have on your site, but a good idea might be to disable any plugin that deals with formatting of any sort. Maybe start out by disabling all other plugins, then re-enabling them one by one to see which one is causing the issue. Particularly look at plugins that are very old.

    Thread Starter darthvader42

    (@darthvader42)

    Thanks for your quick and helpful response.

    Indeed the “Asciidoctor” plugin was the culprit. After deactivation the issue is gone.

    Again, thanks a bunch.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘lightbox shows each image twice’ is closed to new replies.