Managing searchability
You can manage searchability for your products, pages, and blog posts by customizing your storefront search results in the following ways:
- Adjust the publishing status of your products to display or hide them from your storefront search. You can also hide products, pages, and blog posts from search engines and sitemaps.
- Install the Search & Discovery app to customize search results for Shopify's built in storefront search.
- Adjust your theme's code to customize results.
On this page
Customizing your search
You can customize your search results, such as limiting the type of results and boosting specific products in search results, with the Search & Discovery app.
Learn more about the Search & Discovery app in the app's documentation.
For more advanced customizations, you can edit your theme code to change the how search results are requested. This type of customization requires knowledge of web design languages such as HTML, CSS, JavaScript, and Liquid. Learn more about customizing at Shopify.dev.
Make products, pages, and blog posts searchable
Products, pages, and blog posts need be published on your online store to be returned in search results. In addition, resource types that are hidden from search engines aren't searchable.
To make products, pages, and blog posts visible on your online store, set the following settings in your Shopify admin:
Resource Type | Visibility settings |
---|---|
Product | Publish your product in the Online Store channel | Page | Publish the page |
Blog post | Set the blog post to visible |
Hide products, pages, and blog posts from search engines and sitemaps
You can hide specific product pages, blog posts, or pages to be hidden from search engines with the following methods:
- Add a custom metafield from the admin
- Add customer metadata by using the API
- Add metatags to your theme code
Add a custom metafield in your Shopify admin
You can add a custom metafield to a product, page, or blog post in your Shopify admin and set the value to 1
to hide the product, page, or blog post from searches and sitemaps.
Steps:
From your Shopify admin, go to Settings > Custom data.
Under Metafield definitions, select the eligible resource type (Products, Pages, or Blog posts) that you want to hide.
Click or tap Add definition.
Set the following fields:
- Give the metafield a Name such as SEO Hidden.
- Set Namespace and key to
seo.hidden
. - Optional: Give a brief description, such as "Hides the resource from search engines when value is 1".
Configure the custom field values by doing the following actions:
- Click or tap ⊕ Select type and then select Integer.
- Select One value.
- In the Validations section, set the Maximum value to be
1
.
Click Save.
In your Shopify admin, navigate to the product, page, or blog post that you want to hide from search engines.
In the Metafields section, set the value of the SEO Hidden metafield to
1
.Click Save.
To make the product, page, or blog post visible to searches again, delete the SEO Hidden metafield value, leaving it blank, and then save your changes.