All things Shopify and commerce
Hello,
I want to remove all of my product pages from Google.
I still want to keep homepage, collections, blogs, etc. I would just like to remove the product pages.
Any suggestions on the best way to do this without downloading a paid app?
Thanks!
Solved! Go to the solution
This is an accepted solution.
Hi @MaxL
To add a noindex tag to the product page in Shopify using Liquid, you can follow these steps:
Open your theme editor:
Edit theme.liquid:
Add the noindex tag:
{% if template.name contains 'product' %}
<meta name="robots" content="noindex">
{% endif %}
This code checks if the current page is a product page and, if so, adds a noindex tag to the page, instructing search engines not to index it.
Now, your product pages should include a noindex tag, which tells search engines not to index those pages.
If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!
Best Regards,
Makka
This is an accepted solution.
Hi @MaxL
To add a noindex tag to the product page in Shopify using Liquid, you can follow these steps:
Open your theme editor:
Edit theme.liquid:
Add the noindex tag:
{% if template.name contains 'product' %}
<meta name="robots" content="noindex">
{% endif %}
This code checks if the current page is a product page and, if so, adds a noindex tag to the page, instructing search engines not to index it.
Now, your product pages should include a noindex tag, which tells search engines not to index those pages.
If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!
Best Regards,
Makka
Thanks so much! Perfectly explained 🙂
Have a great day!
@MaxL Go to Edit Code > open theme.liquid file > search for <head> tag and under it paste below code and save.
{% if template.name contains 'product' %}
<meta name="robots" content="noindex,nofollow">
{% endif %}
if this solves the problem, please Mark it as Solution!
Hello @MaxL
Go to Online Store > Themes > Actions > Edit Code > theme.liquid.
Add the following code inside the <head> tag:
{%- if template contains 'product' -%}
<meta name="robots" content="noindex, nofollow">
{%- endif -%}
hello, this is not working for me, after i add the code, the prduct page doesnt have any noxindex tag when inspecting the code, any suggestion? Thanks
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025