Skip Navigation

[Resolved] Search results and custom search query

This support ticket is created 6 years, 2 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by leonB-3 6 years, 2 months ago.

Assisted by: Luo Yang.

Author
Posts
#1146774

Hi,

I have setup a custom search on the home page of my site. When you click submit it goes to a search results page.

The search results page shows the custom search AND the search results.

I have styled the custom search in a certain way for my home page. If i need it to look different on the search results page how do i do this?

Do i just show the search results and add in another separate style custom search?

Thanks!

#1146812

Hi,

I think the easiest way is setup two different view with same filters.
1) The first view, display the view's search form in the your home page, see our document:
https://toolset.com/documentation/user-guides/front-page-filters/#4-1-adding-the-custom-search-form-to-a-page-or-widget
screenshot:
hidden link
You can display only the search form.

2) The second view, with same fitters and pass the same URL parameters, display it in the search result page, with option display "Both the search form and results"

Then you will be able to style them differently for each view's custom search form.

#1149157

My issue is resolved now. Thank you!