SEO, AdWords, affiliates, advertising, and promotions
Hello, my site is www.chipchasehr.com
I noticed when inspecting any page that I can find nofollow and google is currently not indexing properly my collections.
I want to do dofollow for the first pages of collections, and no follow for the rest of the pages.
I searched for the solution but I can't find it, all the solutions says install an app and pay for it and I know that it can be done with the little bit of coding, can someone help?
GSC indexed most of the pages but not correctly I think, and there was a lot of duplicated content indexed.
Also I have a problem with canonical tags, there is a lot another pages with the corresponding canonical mark
Can you write here the solution for it so other users with same problem can use it as a solution?
To achieve a "dofollow" for the first pages of collections and "nofollow" for the rest, you can modify the head section of your collection template file. If you're using Shopify, this can be done in the collection.liquid file, usually found in the "Sections" or "Templates" folder of your theme.
Here's a simple code snippet to add to your collection.liquid file that checks the page number and sets the meta robots tag accordingly:
Go to your Shopify theme editor:
Open the collection.liquid template:
Add the following code to the <head> section:
This solution does not require any additional apps or paid tools, and it should help with your indexing issue.
I have done the same for webzeto.com and the issue was resolved by applying said technique.
Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024Note: Customizing your CSS requires some familiarity with CSS and HTML. Before you cust...
By JasonH Aug 12, 2024