This topic contains 2 replies, has 2 voices, and was last updated by twigg99 5 years ago.
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
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 5 years ago.
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.
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,Looks like that worked! Thanks. I will let you know if gives me any issues.
Great work!
You must be logged in to reply to this topic.
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |