Chosen styling dropping off after search is processed

Forums Forums Search & Filter Pro Chosen styling dropping off after search is processed

Tagged: 

Viewing 3 posts – 1 through 3 (of 3 total)
  • Anonymous
    #176917

    Hi,
    this is my second purchase and implementation of this great script for a client, and i have to say we all love it. I have hopefully an easy one here for you.
    i have a search setup here:http://dev.tampamaid.com.php56-3.dfw3-2.websitetestlink.com/products/
    notice how i tapped into the chosen script to style the menus. cool right?
    well the only thing i cant figure out is why that styling drops off after a search is processed.
    I’m running the filters and results as shortcodes on the products page and using a customized results.php file located in my child theme for display.
    Anything that you might have seen before that could point me in the right direction to solve this little bug would be greatly appreciated. I can supply access to the site and or source code.
    thanks

    Trevor
    #176932

    If you are using Ajax, try with that off. If it then does not happen, switch Ajax back on. Are you applying the styling using javascript? If you are, then it needs to be reapplied. So, try re-writing the javascript so it is a function and call the function instead on page load, then use this javascript example to re-apply it when the search happens:

    <script>(function ( $ ) {
      "use strict";
      $(document).on("sf:ajaxfinish", ".searchandfilter", function(){
        console.log("ajax complete");
    
    // call your function here
    
      });
    }(jQuery));</script>
    Anonymous
    #177152

    thanks a ton, i have it working now!

Viewing 3 posts – 1 through 3 (of 3 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.