Calling LightBox on dynamically created image
-
Hello, can you Support with answering how to call this plugins LightBox on dynamically created image that renders as the following
<span id="featuredimage"><a href="https://www.example.com/files/example-image-2.webp" rel="lightbox"><img class="page-image ls-is-cached lazyloaded" src="https://www.example.com/files/example-image-2.webp" data-src="https://www.example.com/files/example-image-2.webp" width="100%" height="100%"></a></span>-but the LightBox scripts doesn’t start when clicking it,
how to have it working?NB. Other standard image tags are having normally working LightBoxes.
Thank you, regards
The topic ‘Calling LightBox on dynamically created image’ is closed to new replies.