How to exclude pages from my in website search function

Hello Shopify Community,

I hope you’re all doing well. I’m currently working on zsisk a.com, and I have a question regarding the in-site search functionality. I’d like to configure the search so that it excludes pages from the search results and only displays products and collections.

Is there a way to achieve this through the Shopify admin panel or through custom coding? I’ve explored the settings and documentation, but I couldn’t find a straightforward solution. Any guidance or step-by-step instructions on how to achieve this would be greatly appreciated.

Thank you in advance for your assistance!

Hi,

Can you share your store url

That’s Zsiska.com

Hi @Gianluca8 ,

You can add a noindex tag on the theme.liquid to stop google search from crawling.

<meta name="**robots**" content="noindex">

Thank you

Hi, The goal is not to let Google not index it, as they are Index pages, but for the search function on the website not to show them when a user is searching for a product.

Request you to refer to the below video

Hope this will help…