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 twigg99 twigg99 5 years, 5 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #19820
    twigg99
    twigg99
    Participant

    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.

    #19829
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    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,
    Ernest Marcinko

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


    #19868
    twigg99
    twigg99
    Participant

    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.