- This topic has 2 replies, 2 voices, and was last updated 6 years, 7 months ago by .
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 › Chosen styling dropping off after search is processed
Tagged: chosen
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
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>
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.
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
*Other cookies used for logging in and cart functions will only be used when you use those features and cannot be disabled.
If you disable these cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.
This website uses Google Analytics to collect anonymous information such as the number of visitors to the site, and the most popular pages.
Keeping this cookie enabled helps us to improve our website.
Please enable Strictly Necessary Cookies first so that we can save your preferences!
More information about our Cookie Policy