Stop Indexing Your Comment Permalinks in Blogger: An Update

Dear friends, recently, we had a post regarding stopping duplicate content on Blogger. In that post, we dealt with removing the DoFollow attribute in the recent comments widget. Here is an update to it.

Even after adding NoFollow attribute, I found that comment permalinks get indexed in Google. The culprit is the comment date and time link at the bottom of every comment, which is DoFollow. Here is what you need to do to add NoFollow to this too.

  1. Go to Blogger Layouts->Edit HTML->Check Expand widget templates
  2. Look for the code similar to:
    <a expr:href='"#comment-" + data:comment.id' title='comment permalink'><data:comment.timestamp/></a>[The data:comment.timestamp adds time details we see in the comment]. If you don't use the customized template, you may just search for data:comment.timestamp and you will find a code similar to this.
  3. Add rel="nofollow to the anchor tag. Here is the result:
    <a expr:href='"#comment-" + data:comment.id' title='comment permalink' rel="nofollow"><data:comment.timestamp/></a>

Copyright © Lenin Nair 2008

0 Opinions:

Post a Comment

Comments are moderated very strictly