How do I hide pages from my Shopify search results but NOT google/search engine results?

brendaanne3
Excursionist
34 0 15

Website: cworldwide.myshopify.com

 

I pretty much would like only products to show up in my search results when searching on store and a select few pages. Right now it's showing all of my pages including my sitemap, etc. when I search for a product keyword. I DO want these pages to be indexed by Google/other search engines, though.

 

How can I hide these pages only from the Shopify search but not search engine indexing/searches?

Below is a screenshot of the search results page. I want to hide items I have outlined in pink.

brendaanne3_0-1658501028674.png

 

Replies 4 (4)

Ahsan_ANC
Shopify Partner
1362 246 311

Can you specify some more details, which theme you are using, and whether the search result page is custom developed by you or the original theme's page?

Contact for any custom design? Skype : ahsananc
>Was your question answered? Mark it as an Accepted Solution!
Feel Free to Contact Me at my Email: anc2277@gmail.com


To enhance and customize Shopify search and filter, I use Boost Product Filter & Search

LitCommerce
Astronaut
2860 684 735

Hi @brendaanne3,

Please follow the steps below: 

- Step 1: Go to header.liquid file, find 'routes.search_url' and add code here:

Screenshot.png

- Step 2: Go to main-search.liquid file, find 'routes.search_url' and add code here:

Screenshot.png

Code:

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

Refer: https://shopify.dev/themes/navigation-search/search#the-search-form

Hope it helps!

LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool.
Effortlessly sell on biggest marketplaces like Amazon, Etsy, eBay, Facebook etc with bulk listing tool, real-time sync & smart order management. Use LitCommerce free for 1-year now!

VrVa
Excursionist
11 1 5

marissa28
Tourist
4 0 6

 NO CODING NEEDED download search and discovery app by shopify - under  settings remove all boxes checked besides "products"  so easy to select what you want showing up under my sites search - i only wanted products not pages. 🙂