FROM CACHE - de_header

Remove pages from store search bar results

Remove pages from store search bar results

Nicht anwendbar

Hey,

 

how do I remove pages(see first image for example) from the search results of my search bar from my shopify store(see 2nd image)? I just want products to pop up in my search bar results and no pages or anything else at all.

 

Im using the dawn theme if that helps.

 

Screenshot 2024-01-04 000823.pngScreenshot 2024-01-04 000857.png

1 ANTWORT 1

Ole_
Shopify Partner
41 8 20

Hey,

 

You can create a metafield for pages to do that. Give it the name "hidden" and the handle "seo.hidden". Make it an integer with minimum value 0 and maximum value 1.

 

Go to the page you want to hide from your search result and fill the metafield with the value "1"

 

This will hide your page from your shops search result (Downside: It will also hide it from search engines)

If you find my suggestions helpful, kindly express your feedback by liking or marking them as a solution.

visionz.de