[Resolved] Search Results page – assigning a layout
This thread is resolved. Here is a description of the problem and solution.
Problem: I am trying to create a Layout for Search Results, but the Layout doesn't appear on the front-end of the site when I use a 3rd-party search tool.
Solution: Check the Layout applied to the Search results archive, and be sure to insert a WordPress Archive cell. Then check the URL parameters. The 3rd-party search tool is adding some parameters that seem to cause problems.
This support ticket is created 6 years, 5 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.
Tell us what you are trying to do? I am trying to create a search results page layout.
Is there a similar example that we can see? Use the search on the sidepanel of hidden link Hit enter instead of the pupolated results in the sidepanel. I have created a layout for the results and assigned it through the WP archives page to include products, but it seems to load a different layout template. I just need a point in the right direction.
OK, thanks for checking. Because its a live shop and we have purchases I will make a staging site and turn off all plugins. Thanks for verifying that I did indeed set it up right and that there may be another cause elsewhere. I'll update this ticket after the staging is built and I have tested without plugins.
Hi, Shane is on public holiday today so I'll try to help. I can see the staging environment and I'm curious about something. On the main site, the URL produced by the search feature is like this: hidden link
That URL shows the malformed archive. But if you remove all but the search term, like this: hidden link
Now you can see something different. So the content display seems to be changing with those two URL parameters for some reason. My first guess is that WooCommerce keys off the word "product", but I'm not sure. I'm also not really sure why this custom search feature appends those parameters to the search.
On the staging site, I replaced the Post Content cell in the Layout for Search Archives. That should be a WordPress Archive cell, because you want to display the search results archive here. Now I'm seeing what looks like search results at the ?s=leather URL, but on the live site the result is somewhat different. Please delete any Layouts you may have in the Trash to clear them completely from memory. Then replace the Post Content cell in the Layout for Search Archives with a WordPress Archive cell containing your WP Archive Product Search Results.
What can you tell by following the shortened link above on the staging site - is this more like what you expect to see for the archive results?
Thank you very much for that. I'll go over what you said, it certainly looks like you have set me on the right track to get this resolved. Thanks again x100.