Add images dynamically (hook these to Fancy Lightbox click-event)
-
Hi.
I’m using slick-slider on my site. Whenever the user is changing between the different variations on my single product page, I’m dynamically adding new images to the slick-slider. However, the ARI Fancy Lightbox dosen’t seem to work on dynamically appended items (images); when I click on the newly added image, the popup dosen’t initialize, nor does the newly added images occur in the gallery (left panel).
I’ve tried some different approches to fix this, and found ARI_FANCYBOX_INSTANCE.convertElements(); however, this dosen’t work. I’m not even sure what convertElements really do, as your documentation doesn’t really explain any developing aspects.
It is possible to add images after pageload, and hook these images to Fancy Lightbox click-event?
- The topic ‘Add images dynamically (hook these to Fancy Lightbox click-event)’ is closed to new replies.