Forums › Forums › Search & Filter Pro › Avada, Lightbox, Ajax problem
- This topic has 5 replies, 3 voices, and was last updated 8 years, 10 months ago by
Ross.
-
Anonymous(Private) July 19, 2016 at 5:04 pm #51647
Hi there,
I’ve tried using the hook mentioned on the FAQs page, and while I can see in console it’s getting triggered, the lightbox isn’t working after selecting a filter.
Avada theme also seems to have a custom function call to the prettyPhoto lightbox they’re using.
Any help getting the lightbox to work correctly on the Avada theme would be a great help. I’m using the shortcode method to display results from s&f.
Ross Moderator(Private) July 25, 2016 at 8:49 pm #52146Hey Brian
I had a look, it all seems ok actually… as in it looks like it should be re-initialising the lightbox when S&F results are updated.
The only thing I can think of is that your S&F code is not inside a document ready. Maybe move all the S&F code inside the document ready so it looks like this:
jQuery(document).ready(function(){ jQuery('a[rel^="prettyPhoto"]').prettyPhoto(); // - add scripts that apply to your results here jQuery(document).on("sf:ajaxfinish", ".searchandfilter", function(){ console.log("ajax complete"); jQuery('a[rel^="prettyPhoto"]').prettyPhoto(); }); });
Let me know 🙂
Thanks
-
AuthorPosts