Shopify themes, liquid, logos, and UX
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.
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?
Hi @brendaanne3,
Please follow the steps below:
- Step 1: Go to header.liquid file, find 'routes.search_url' and add code here:
- Step 2: Go to main-search.liquid file, find 'routes.search_url' and add code here:
Code:
<input type="hidden" name="type" value="product">
Refer: https://shopify.dev/themes/navigation-search/search#the-search-form
Hope it helps!
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. 🙂
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025