sachinchoolur / lightgallery.js

Full featured JavaScript image & video gallery. No dependencies
https://sachinchoolur.github.io/lightgallery.js/
Other
5.3k stars 596 forks source link

Thumbnails urls are undefined when using only one tag for the structure #73

Closed Robouste closed 3 years ago

Robouste commented 7 years ago

Hello,

Here is my html structure :

<img src="{{ smallPath }}" data-src="{{ fullPath }}" class="gallery-photo" />

The lightgallery is firing correctly but all thumbnails are broken. When I check the sources, src is set to undefined. I guess it's because of the structure but I unfortunately can't change it :(

Is there an attribute to set to get the current src of the image for the thumbnail ?

The gallery is working fine when using a two level structure (img inside anchor with href attribute)

vesper8 commented 5 years ago

did you ever figure this out @Robouste ?

I have the same problem

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. If the issue is still valid for version 2.x, please re-open. Apologize for not responding on time. Thank you for your contributions.