Noindexing Product Blog Tags

No Index Product and Blog Tags

To prevent search engines from indexing specific product and blog tags on your Shopify store, you can use the robots.txt file or add meta tags to the relevant pages. Here’s how you can do it:


1. Go to your Shopify admin panel.
2. Navigate to Online Store > Themes.
3. Click on Actions > Edit Code.
4. In the Layout folder, find and open the theme.liquid file.
5. Add the following code to the head section:

{% if template == 'list-collections' or template == 'blog' %}
 {% if current_tags.size > 0 %}
  <meta name="robots" content="noindex">
 {% endif %}
{% endif %}

This code will add a noindex meta tag to all product and blog pages.

WooCommerce (WordPress)

1. Install and activate the Yoast SEO plugin.
2. Go to the WordPress admin panel.
3. Navigate to SEO > Search Appearance.
4. Click on the Taxonomies tab.
5. Find the Product tags and Post tags sections.
6. Set the Show Product Tags in search results? and Show Post Tags in search results? options to No.
7. Save changes.

This will add the necessary noindex meta tags to your product and blog tags on WooCommerce.