• Scenario:

    You have 4 image thumbnails. One of which is for a video.

    [Large image shown]

    [thumb 1] [thumb 2] [thumb 3 (video)] [thumb 4]

    Clicking on the thumbnails changes the large image, including showing vimeo or youtube videos. That’s perfect.

    Click on thumb 2 to show the large version of that thumbnail as the large image above. Works. Great.

    However, now click that large image and the image that appears in the lightbox isn’t the large image, it’s always the first image in the gallery. i.e. if Image 2 is being shown and I click on it, the lightbox should show image 2 (not image 1).

    The URL is correct, it appends #&gid=1&pid=2 – i.e. it should be showing the image with id 2 (pid=2) but it appears, as a guess, the custom photoswipe that you’re including with the plugin is preventing this from working as expected.

  • The topic ‘1st image in gallery is always loaded first in lightbox’ is closed to new replies.