In the Dawn 2.0 theme, how to hide products in search and reccomendations

Solved
uffdacrafts
New Member
2 0 1

I want to hide certain products from being searched based on a product tag.

I don't want to use an app since it is just a few items that need to be hidden.

Accepted Solution (1)

Accepted Solutions
JalenR
New Member
2 1 2

This is an accepted solution.

Hi Uffda,

You can use the following code to hide a product from the product recommendations, place it in product-recommendations.liquid as you see in the screenshot. Note: This will leave a blank spot(s) where the recommendation would otherwise show up.

 {% unless recommendation.tags contains "_hidden" %}
 {% endunless %}

JalenR_0-1635372320931.png

JalenR_1-1635372464897.png

As far as removing an item from search, the only way I have found was to use the seo.hidden metafield. Edit the link with your store name and it will bring you to the bulk editor to edit that metafield.
https://my-store.myshopify.com/admin/bulk?edit=metafields.seo.hidden%3Aboolean&limit=250&resource_na...

 

View solution in original post

Replies 4 (4)
JalenR
New Member
2 1 2

This is an accepted solution.

Hi Uffda,

You can use the following code to hide a product from the product recommendations, place it in product-recommendations.liquid as you see in the screenshot. Note: This will leave a blank spot(s) where the recommendation would otherwise show up.

 {% unless recommendation.tags contains "_hidden" %}
 {% endunless %}

JalenR_0-1635372320931.png

JalenR_1-1635372464897.png

As far as removing an item from search, the only way I have found was to use the seo.hidden metafield. Edit the link with your store name and it will bring you to the bulk editor to edit that metafield.
https://my-store.myshopify.com/admin/bulk?edit=metafields.seo.hidden%3Aboolean&limit=250&resource_na...

 

View solution in original post

uffdacrafts
New Member
2 0 1
HardeepOne
New Member
4 0 0

Is there a way to hide the search bar entirely on the Dawn 2.0 theme? My site is very simple, I want to remove the search bar feature. 

BugShallNotPass
Excursionist
29 1 2

I've developed an app that does the job - https://apps.shopify.com/hide-from-search. It hides products from both Shopify search results and external search engines.

Xmas Shopify app - beautiful falling snow animation
New Arrivals Shopify app - automatically tag/untag products based on creation/publishing date
Motion - scrolling text announcements
Stash Shopify app - hide products from search results and search engines