Forums Forums Search & Filter Pro Avada, Lightbox, Ajax problem

Viewing 6 posts - 1 through 6 (of 6 total)
  • Anonymous
    #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.

    Anonymous
    #51649
    This reply has been marked as private.
    Trevor
    #51696

    I will mark this for Ross’ attention, but he is very busy 🙁

    Anonymous
    #51954

    Ross, any chance of you getting time to look at this? I’m sure there’s someone else in the past that’s had this issue with Avada…I can’t find any public solution though

    Ross Moderator
    #52146

    Hey 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

    Ross Moderator
    #52153
    This reply has been marked as private.
Viewing 6 posts - 1 through 6 (of 6 total)