This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Mandatory dropdown filter enable the search

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Mandatory dropdown filter enable the search Reply To: Mandatory dropdown filter enable the search

#25140
danielecelsa07danielecelsa07
Participant

Hi Ernest,

thank you for your kind reply, we really appreciated you wrote a custom code just for us 🙂

Anyway, we tried your code but it does not seem to be working for us.
What I got from your reply is that, using your code, the button trigger in the search bar should be ‘deactivated’ (which means you cannot search anything, you cannot ‘click’ the button) if no selection is checked in a dropdown menu or in a checkbox menu (I tried both) of a Taxonomy filter.
The trigger should become ‘active’ (which means that it allows searching something, the button is clickable) when I make at least a selection in the dropdown/checkbox menu of the Taxonomy filter.

Is this the expected behavior?
If yes, maybe I got something wrong in the settings of the filter.

Anyway, what I did it is just copy&paste your code in function.php file at the beginning of the file, right below <?php

Here it is a page where we tried your code, just in case you would want to take a look:
https://www.idlike.app

Attached you can find the setting for the Taxonomy filter.

Thanks in advance!
Daniele