- This topic has 1 reply, 2 voices, and was last updated 11 years, 2 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 › Display a loading icon
Hi Ross,
Great plugin, it makes everythings that I’m looking for, execpt for one thing.
I’d like to display a loading icon when I’m waiting for my filter to “have effect”. Right now, the content have a transparency when loading. How can I easily add a loading icon at the top of that? Is there a simple way to do so?
Thank you very much!
Marc
Hey Marc
Check – http://www.designsandcode.com/wordpress-plugins/search-filter-pro/faqs/
Here you will see two JavaScript events, which fire when the loading starts, and when the loading finishes – so you could add & remove your custom loaders here – eg:
$(".searchandfilter").on("sf:ajaxstart",function(){
alert("show loader");
});
$(".searchandfilter").on("sf:ajaxfinish",function(){
alert("hide loader");
});
This should be put in your themes main JS file 🙂