- This topic has 1 reply, 2 voices, and was last updated 10 years ago by .
Viewing 2 posts – 1 through 2 (of 2 total)
Viewing 2 posts – 1 through 2 (of 2 total)
Posted
by
Forums › Forums › Search & Filter Pro › Where to add js snippet on posts filtering action
I would depend on the action of the form. If Ajax is on, you need to add the snippet to your theme page like this:
$(document).on('sf:ajaxfinish', '.searchandfilter', function(){
console.log("ajax complete");
jQuery('.listing-grid .detail').matchHeight();
});
Otherwise, you need to load that script as the results page loads, again from your theme.
You might also consider using flexbox css as an alternative, thus avoiding any use of javascript.