How can I exclude pages from search results on my website?

When using the search bar on my website, it shows pages in my results. I only want it to show products. How can I hide the pages from showing in the search? I am using Ride theme

2 Likes

Hi @delta1seven1 ,

Depending on your theme, you can change the search syntax. Please refer to Shopify’s documentation here.

@delta1seven1

you have easy to manage just go to theme customization >>> Theme Setting >>> search just check product

@delta1seven1 hi!

For more control I would suggest to use a tag on the product something like “no-index” and from there you can make use of liquid to add the specific rule that you need, in that way we can have more control for future customizations

@KetanKumar

I don’t see that option. Am I doing something wrong? Thanks

Try this, it helped me :slightly_smiling_face:

https://community.shopify.com/c/technical-q-a/how-to-remove-specific-pages-from-storefront-search-results/m-p/1736590#M103313