2 Search boxes on the same page

Home Forums Product Support Forums Ajax Search Pro for WordPress Support 2 Search boxes on the same page

This topic contains 2 replies, has 2 voices, and was last updated by

3 years, 2 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #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.



    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.

    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)



    Looks like that worked! Thanks. I will let you know if gives me any issues.

    Great work!

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

You must be logged in to reply to this topic.