- This topic has 1 reply, 2 voices, and was last updated 9 years, 5 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
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.