Lightbox not working after ajax call.
-
Greetings,
I’m using Responsive lightbox with prettyphoto enabled. Everything’s working great, except if I use ajax to refresh content.
Is there something I can use on my ajax success callback to reinitialize lightbox?
I’ve spent quite a number of hours on this, and tried $.getscript directly to prettyphoto
$.getScript(“https://website.com/wp-content/plugins/responsive-lightbox/assets/prettyphoto/js/jquery.prettyPhoto.js”);
I’ve tried:
$(‘.thumbs a’).lightbox();
I’ve tried:
initLightbox();Nothings working.
I assume you’ve come across this issue before and perhaps would know how to reinitialize lightbox after an ajax call using your plugin specifically.
Thanks, in advanced, for any help provided!
- The topic ‘Lightbox not working after ajax call.’ is closed to new replies.