Skip Navigation

[Resolved] Add search bar to home page to load results in existing view

This support ticket is created 3 years, 9 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by nickP-12 3 years, 9 months ago.

Assisted by: Christian Cox.

Author
Posts
#1672295
search.png

Tell us what you are trying to do?

I have created a view to allow users to search and filter products from WooCommerce (see screenshot). I want to add JUST the text search to our homepage, so that when a user searches by keyword it redirects them to the page with the view I have created. At the moment when I add the Toolset View (and select 'only the search form') to the homepage it also displays all the filters which I do not want. Is there anyway to just display the search bar (boxed in red in my screenshot) on the homepage?

#1672601

I would create a separate View with only a text search field, and place only the search filters of that View on the homepage. Configure it to redirect to the page containing the original View with the original filters and results. Then the Users will be able to use the other filters as needed on the full View with all filters.

#1677085

Hi Christian,

Thanks for the response. I understand the concept of your suggestion but when you say "configure it to redirect to the page containing the original View with the original filters and results" how exactly do you suggest I achieve that? And will this as the very least ensure the search bar on the original view is pre-populated with whichever search term they enter on the home page? It would be a poor user experience if they were just redirected to a page with none of the information they had entered.

Thanks,
Nick

#1678105

Hi Christian,

Disregard the above I've figured it out (pretty easy to do). The issue was I'm using elementor and the options to confiure the view are quite hard to read when inserting the search bar onto the front page (maybe something that could be improved - unless it's just my setup?). Thanks for your help.

#1678107

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.