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.
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.