Skip Navigation

[Resolved] Create a search bar that display result on the main search page

This thread is resolved. Here is a description of the problem and solution.

Problem:
Create a search bar that display result on the main search page

Solution:
To change the search URL you need to add some custom code.

You can find the proposed solution in this case with the following reply:
https://toolset.com/forums/topic/create-a-search-bar-that-display-result-on-the-main-search-page/#post-1244394

Relevant Documentation:

This support ticket is created 5 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by jean-francoisB 5 years, 7 months ago.

Assisted by: Minesh.

Author
Posts
#1244321

Tell us what you are trying to do?

I have a page name SEARCH on my website at this address : hidden link. On this page, I have the search bar and some filter options that display the result just under.

On the website header black bar, I would like to also display a search bar with a classic magnifier. When someone writes a keyword and click on the magnifier, we will land on the same search page with the result of that key word.

While using the search bar on my search page, I noticed that the address of the page becomes something like this :

hidden link

So is it possible to tell to my little search bar in the website header to open this address with the keyword entered? Like if I search for "banana", when I click on the magnifier, this page is loaded : hidden link. I'm pretty sure it's possible but I don't know where to find the documentation about it.

Thank you very much!

#1244394

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - to change the search URL you need to add some custom code.

Please check the following links that may help you:
=> hidden link
=> hidden link
=> hidden link

You need to adjust the code as required.

#1244401

My issue is resolved now. Thank you!