Support Forums

Support Forums Forums Search & Filter Pro How to customize the filter section?

This topic is: not resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Ralph GORTZEN

    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.

    Trevor Moderator


    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:

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

You must be logged in to reply to this topic.