• Resolved David Robinson

    (@foxrobinson)


    If you click on the large image at the top left, you can see the plugin does not recognise it and instead it opens the page for that image.

    If you click on any of the three images on the right then the plugin works and I can scroll through all the images on the page EXCEPT the large one previously mentioned.

    Why is it not recognising this image and how do I fix it?

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

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

    (@awelzel)

    The URL of the first image is not correct – it contains a trailing space:

    <a >

    Besides the fact, that an URL should not end with a space, the plugin will then also not recognize this as a valid image since it does not end with “.jpg” but “.jpg ” (note the space at the end). Browsers may be a bit more tolerant with this and still open the image, even if a space at the end is present. However this should be fixed.

    Either correct the HTML code manually or if this is created by some gallery plugin ask the maintainer of the gallery plugin to fix this. URLs must not contain a space at the end.

    Thread Starter David Robinson

    (@foxrobinson)

    Ah yes, perfect, thank you. The site is fully bespoke so I was able to fix it easily. Thank you for your help and the speed at which you replied is great.

    Plugin Author Arno Welzel

    (@awelzel)

    You’re welcome. I’m glad that I could help.

    By the way: you should consider switching to PhotoSwipe 5 since version 4 is not maintained any longer and will be removed this year. Also the sharing options in version 4 may not work as expected any longer and overall it does not work well with newer iPhones.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not working with a particular image on a page’ is closed to new replies.