Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

duplicate images in gallery thumbnails #263

Open
codecompagnons opened this issue Oct 4, 2021 · 5 comments
Open

duplicate images in gallery thumbnails #263

codecompagnons opened this issue Oct 4, 2021 · 5 comments

Comments

@codecompagnons
Copy link

Schermafbeelding 2021-09-29 om 17 23 16

Hi,
I get duplicates images in the gallery. See screenshot. Any idea what this issue can be?

Many thanks in advance!

@blueimp
Copy link
Owner

blueimp commented Oct 4, 2021

Hi @codecompagnons,
unfortunately it's not possible to know from just a screenshot.
Do you have a publicly accessible url for your Gallery?

@codecompagnons
Copy link
Author

codecompagnons commented Oct 4, 2021

Hi @blueimp
Thanks for the fast reply.
Yes, https://www.franceestateservices.com/nl/aanbod/occitanie/gard/molieres-sur-ceze/Huis/61dfe8e4-39f2-47ef-9744-c1052f29350d/
Remarkable: the duplicate images are the images visible in mobile view. The 3 under the larger image

@blueimp
Copy link
Owner

blueimp commented Oct 6, 2021

Thanks for sharing the link.

I looked at your source code and the reason you see thumbnails multiple times is because they are listed multiple times as links. e.g. in your id="links" container, you find two occurrences of a link with href="/media/3_5qTXUQe.jpg", both wrapping an img tag with the same src="/media/3_5qTXUQe.jpg".

To solve this, you might want to look into link grouping:
https://github.com/blueimp/Gallery#container-ids-and-link-grouping

@codecompagnons
Copy link
Author

Thanks! Going to check this out. I let you know if it worked.

Thanks again!

@sebastian-marinescu
Copy link

@codecompagnons I just checked your link - it seems you got it working?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants