Shopify themes, liquid, logos, and UX
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
I'm using the Dawn theme for my website. I have created multiple pages, and I want to hide some of them, meaning I don't want these pages to be indexed on the website. Please help me achieve this.
website: https://www.varthagaminternational.com/pages/customer-schedule-a-visit
Hello @Sivadarshan ,
Edit theme.liquid search for </head>
now here just before to it add this code
{% if request.path contains 'customer-schedule-a-visit' %}
<meta name="robots" content="noindex, nofollow">
{% endif %}
Regards
Guleria
Hi there @Sivadarshan To effectively hide certain pages of yours the way you want to, you should follow the steps provided in this official Shopify guide here https://help.shopify.com/en/manual/promoting-marketing/seo/hide-a-page-from-search-engines
Hi @Sivadarshan ,
Go to Online Store → Themes → Edit Code
Open: theme.liquid (under Layout)
Inside the <head> section (before </head>), add:
{% if template == 'page.customer-schedule-a-visit' %}
<meta name="robots" content="noindex, nofollow">
{% endif %}
Hi @Sivadarshan
You can take two steps below to hide page URLs and make them not indexed by Google:
1. Change the status of related page URLs from Shopify admin page from active to archived or draft.
2. Add no-index code on your store theme code pages. You can check this guideline I attach below for reference.
https://developers.google.com/search/docs/crawling-indexing/block-indexing