Display a loading icon

Forums › Forums › Search & Filter Pro › Display a loading icon

Viewing 2 posts – 1 through 2 (of 2 total)
  • Anonymous
    #5379

    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

    Ross Moderator
    #5436

    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 🙂

Viewing 2 posts – 1 through 2 (of 2 total)

Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.