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

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.

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 %}

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_name=Product

3 Likes

Thanks this totally worked!

1 Like

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.

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.

Hi @JalenR

Is it possible to use two tags for this?