I want my customers only to be able to search for products in search bar

WahlkvistAlex
Tourist
12 1 2

Hi! 

As the subject says.  I do not want articles or other pages to be included in search results. 

I use simple theme.

My url is: www.smasha.se 

Can somebody provide me with a code?

Best regards

Alex

0 Likes
Quyen_Beo
Explorer
58 7 12

You can read this document to make the search only show results for product instead of pages & article
https://shopify.dev/tutorials/customize-theme-edit-storefront-search-results

Was my reply helpful? Please Like and ✔️ Accept Solution. This mean alot to me
Hyde
Shopify Staff
Shopify Staff
869 98 155

Hi @WahlkvistAlex,

Hyde here from Shopify.

It is possible to edit your theme code to change the search results that show up. It is mostly outlined here and here. Because this is quite an advanced code edit our help team couldn't really support it, so I hope those guides are useful. If you're still uncertain, you may want to consult with a Shopify Expert for more professional help.

All the best, Hyde.

Hyde | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog