- November 6, 2018 at 6:34 pm #19820
I am using two search boxes on my site and they appear on the same pages. One is for articles and the other is for products. When I search using either box, the search term is automatically populated in the other search box after submitting the search. How can I disable this?
Example: I search using the term “second hand” using the article search box and hit the search button. This opens up a new page with results. The new page shows the term in both search boxes.
I want each search box to act independently of each other.November 7, 2018 at 11:00 am #19829
Well, there is no option for that, but it is possible using a custom code.
Add this custom code to the functions.php in your theme/child theme directory (copy from line 3 only!). Before editing, please make sure to have a full site back-up just in case!
I have not been able to try if this work, so please be careful.Best,
If you like my products, don't forget to rate them on codecanyon :)
November 9, 2018 at 8:32 am #19868
Looks like that worked! Thanks. I will let you know if gives me any issues.
You must be logged in to reply to this topic.