Open schroef opened 8 years ago
Hi Schroef, i have not tried it out but the least thing you can do is a setTimeout function that adds a new class to the images. In Detail: once that the photos are loaded an running (you could create a Jquery event that checks if the parent element contains at least X childrens) you add the class "lightbox" to each child-element. At the same time add a prepend and append href tag to each child via Jquery so that it creates a link. I think that should work.
Is it possible to add a lightbox function instead of the link to a new page?