seo.hidden not working

seo.hidden not working

Nitansh
Shopify Partner
5 0 0

I want to hide certain products from the store and from the search results. Previously it worked by using seo.hidden metafield and setting its integer value to 1 on the product, but now it is not working anymore. Any idea?

Replies 2 (2)

KieranR
Shopify Partner
391 34 118

Can you share the ? values for a SEO hidden product metafield on your site:

 

"namespace": "?",
"key": "?",
"value": ?,
"type": "?"

 

You can see these raw values when logged into that stores Admin.

 

Accessed by this link: 
https://admin.shopify.com/store/your-store-subdomain/products/10101010101010/metafields.json 

replacing the bold bits with subdomain and product id, respectively.

Part time Shopify SEO, based in NZ. Sometimes freelance outside the 9-5.

Dirk
Shopify Staff
2396 257 529

Hey, @Nitansh 

The above method will hide the product from search engines but not the storefront. You can unpublish the products from your Shopify admin so that they no longer show up on your storefront. We have a guide here on how you can accomplish that. 

 

If there is anything else I can help you with, please let me know.

Dirk | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog