Forums Forums Search & Filter Pro Combining shortcode, infinite scroll & masonry

Viewing 3 posts - 11 through 13 (of 13 total)
  • Anonymous
    #204103
    This reply has been marked as private.
    Trevor
    #204113
    This reply has been marked as private.
    Ross Moderator
    #204213

    Hi there

    Depending on where & how you load your JS, you might need to wrap the above code like:

    //depending on where you add your JS, sometimes its necessary to wrap the above events in a function (as is standard practice):
    (function ( $ ) {
    	"use strict";
    	
    	$(document).on("sf:ajaxfinish", ".searchandfilter", function(){
    		console.log("ajax complete");
    	});
    }(jQuery));

    Let me know how you get on.

    Thanks

Viewing 3 posts - 11 through 13 (of 13 total)