- This topic has 1 reply, 2 voices, and was last updated 4 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 › How to customize the filter section?
Tagged: Customize filter, V3
We know how to customize the results, for example via the results.php file.
But I don’t know how or where I can customize the filter itself.
I need to add some JavaScript code because I want to hide and display my big amount of categories via checkboxes and reduce this long list of categories with a “Show more/Show less” button.
To do so, I need to edit the HTML of the filter I use and adding some JS code for my button.
Could you help me to do that or find where is located this file please?
PS: Sorry if the question has already been asked in this forum, but it is not easy to find an answer in all the asked questions here, even via the search field.
Thank you.
Hi
You need to be very careful about altering the HTML of the form, as our plugin expects a certain structure, and if you alter this, it CAN break the functionality.
I do not have snippets I can share with you, you would need to hire a third party coder. But, you should not modify our core plugin files to do this. There is a great risk that an update would overwrite your edits.
V3 of our plugin (due in a few weeks, but I cannot say exactly when) allows a lot more flexibility when it comes to design changes.
If you are creating your own JS to do this, not that it may need to be loaded on document ready and also (possibly) on ajaxfinish and ajaxformfinish. These events are described here:
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