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)