All things Shopify and commerce
Hello everyone,
I'm trying to search an easy ways to hide a specific product from:
- SEO
- Shopify predictive search
- Shopify search page
In the docs many people mentioned that you can use a metafield called "seo.hidden" and just change the value for the product to 1. For some reason this metafield is already declared but not editable. The only way I can access the metafield is by the bulk editor link "
". When I change a value there Shopify is telling me to enter a valid value. 1 doesn't seem to be valid like discussed in other forums.
Does anyone knows a solution to this one?
Best regards
Lukas 🙂
Hi Lukas,
I took a look at this on a test store and it seems like adding a metafield definition for the "seo.hidden" metafield gets it to work:
Then when I go to https://examplestore.myshopify.com/admin/bulk?resource_name=Product&edit=metafields.seo.hidden&selectedView=all I can set the value to 1 and save it without error.
You can verify that the item is hidden by looking at the source of a product detail page where you should now see the code "<meta name="robots" content="noindex,nofollow">" in it.
Another advantage to using a metafield definition is that you can also toggle the SEO visibility for a product directly from the product detail page:
If you need to update a bunch of products at once I would also recommend our app, the Ablestar Bulk Product Editor. Using the free plan you can do bulk updates on metafields that match almost any set of conditions (eg, set seo.hidden to one for all products created more than 10 days ago that don't have an image):
Hope this helps and let me know if you have any other questions. Best,
Daniel
Hey @Ablestar_Daniel
It is possible to hide just only on the storefront but not on Search engines.
Or hide on search engines but not on storefront using this approach?
Hi @abrar_anwar, the above method will hide the product from search engines but not the storefront.
As far as I know, the product will have to be visible on the web for the search engines to index it so I don't think there's a way to only make it visible on search engines.
Best,
Daniel
Hi Daniel,
Is there a way to hide add-on products on the storefront? I have add-on products to my core product that I don't want to show up when someone searches all products on my storefront.
Best,
Paul
Hi! I saw someone else find a workaround for hiding products on the store front. You have to create a collection with the url "all" because collections/all is where "all products" are located by default. You can rename the collection title to something else though, like "All Products". Put all of your products into this collection that you want visible. Then, just make sure your hidden products are not in any collection.
This worked for me, and my "hidden" products do not come up when searching in my store or clicking view all.
important: it also hide from SEO
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024