Search »

Turn off ‘nofollow’ in comments

Written by Chris

Whenever someone leaves a comment on your Blogsome blog, the link usually includes the ‘nofollow’ attribute. This means that Google and other search engines don’t count it as a proper link. If you wish to reward your regular commenters with backlinks that Google does count, then go to your comments.html file and follow these simple steps:

  1. Find the bit that says something like this: <cite>{commentauthorlink}{_e text=" said"}:<br /></cite>.
  2. Change it to: <cite><a href="{commentauthorurl}">{commentauthor}</a> {e text=" said"}:<br /></cite>.
  3. Then find this: {comment_text},
  4. And change it to this: {capture name='textcomment'}{commenttext}{/capture} {$smarty.capture.text_comment|replace:'rel="nofollow"':''|replace:"rel='nofollow'":""}.

Have a look at the source code for any comments that have been left on your blog. If the changes have worked, you will not see ‘nofollow’ on any of the comments.

As always when making changes, remember to save a copy of your original comments.html file so that you can put it back in your template if, for any reason, the alterations don’t work for you.

source: http://standalone.blogsome.com/