A merchant wants to hide certain custom products from the store’s search functionality while keeping them accessible via direct links for specific customers.
Two main solutions proposed:
Using seo.hidden metafield (Shopify’s native option):
Modify search.liquid template to filter out products where this metafield is true
Requires theme code customization
Key consideration: The seo.hidden method affects all search (internal + SEO), which may be acceptable for products meant only for direct link access. The custom metafield approach offers more granular control but requires template editing.
Summarized with AI on October 23.
AI used: claude-sonnet-4-5-20250929.
It’s possible to achieve this using a tag and a metafield, but it will also require some customization in the search template. If you’d like me to handle it, please share the collaborator code so I can edit the theme accordingly.
To exclude certain products from appearing in your store’s search results, you may consider trying the solution provided by Shopify Support, which is that you can use a custom metafield called seo.hidden. Please follow the steps below to set it up and apply it:
Step 1: Create the Metafield Definition
From your Shopify admin, go to Settings > Metafields and metaobjects.
Select Products.
Click Add definition.
In the Name field, enter: SEO Hidden.
For Namespace and key, enter: seo.hidden.
Set the Content type to: Integer.
Click Save.
Step 2: Apply the Metafield to Specific Products
Navigate to the product page in your Shopify admin.
Locate the SEO Hidden metafield under the Metafields section.
Enter the value 1 to hide the product from search.
Click Save.
Products with seo.hidden set to 1 will not appear in your storefront search or on search engines. However, the direct product URL will still be accessible and can be shared with specific customers as needed.