Skip Navigation

[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.

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)

This topic contains 7 replies, has 3 voices.

Last updated by taih 6 years, 4 months ago.

Assisted by: Christian Cox.

Author
Posts
#951607

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.

What is the link to your site? hidden link

thank you

#952365

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Thank you for contacting our support forum.

Would you mind providing me with admin access to the website so that I can check on this for you ?

The private fields will be enabled for your next response.

Thanks,
Shane

#952428

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Taj,

I took a look at this, the layout should show.

Could you temporarily disable all the non-toolset plugins and try again ?

Thanks,
Shane

#952435

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.

thanks

#953677

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Tai,

Thanks, looking forward to hearing from you soon.

Thanks,
Shane

#1069461

I have setup staging1.ravenswoodleather.com, but I couldnt seem to pinpoint whats causing this.

#1070325

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?

#1070362

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.