Blog and Pages text showing up in the website search results when clients search for products

Solved
Ciska
New Member
2 0 0

I Would like to know how we can go about removing text from our in-store searches so that only products can be shown

example:

https://www.plantcouture.co.za/search?q=pots+and+plant

this link will show either pages or blogs text with products but we only want products to be shown, how do we hide the rest?

0 Likes
Guleria
Shopify Partner
1476 304 421

This is an accepted solution.

Hello @Ciska ,

You have to add a input field in existing search for.
this one

<input type="hidden" name="type" value="product" />

 After that when you make search results will be look like this https://www.plantcouture.co.za/search?q=pots+and+plant&type=product


Thanks

Want to modify or custom changes on store hire me.
Email: guleriathakur43@gmail.com, Skype: navrocks1
If helpful then please Like and Accept Solution.
Ciska
New Member
2 0 0

Thank you so much for the quick response I want to ask where precisely I must add this? in either the search.liquid or search-template.liquid file?

0 Likes
Guleria
Shopify Partner
1476 304 421

This is an accepted solution.

In next to this code

<form action="/search" method="get">

It may be in header, search etc. depends on the theme structure you are using.

Thanks

 

Want to modify or custom changes on store hire me.
Email: guleriathakur43@gmail.com, Skype: navrocks1
If helpful then please Like and Accept Solution.