How to add Nofollow to some unimportant internal links on the website?
My website has some less important pages. How to add Nofollow so that it will not be tracked by Google?
How to add Nofollow to some unimportant internal links on the website?
My website has some less important pages. How to add Nofollow so that it will not be tracked by Google?
Dear @susanm123
In Shopify, the platform automatically assigns the “nofollow” attribute to certain links such as your login page, cart page, and search result pages. However, applying the “nofollow” attribute to other internal links on your site isn’t an in-built feature in Shopify and requires custom coding.
From your Shopify admin, go to “Online Store” > “Themes”.
Find the theme that you want to edit, and then click “Actions” > “Edit code”.
Along the left-hand side, you’ll see a file structure. The exact file can vary, but here are some common files:
header.liquid
, footer.liquid
inside the Sections
folder.page.liquid
or page.template_name.liquid
in the Templates folder.product.liquid
in the Sections
folder or Templates
folder.After you find the file, open it, and look for the HTML for the link that you want to change.
The link will be in an anchor tag that looks something like this: Link Text
.
Add the rel="nofollow"
attribute to the tag: Link Text
.
Click “Save”.
I hope that this helps!