Edit WordPress Comment Section to Save PageRank
Written by Pavan Kumar on June 13, 2009
Google’s has changed its way of viewing nofollow links on websites. Yesterday, you read the SEO analysis of new nofollow. And you probably have read that converting nofollow links to no links would help to send the same PR juice to genuine links. And I promised you that my next post will guide you on changing the comment section to converting nofollow to NO links and hence this post 🙂
Here is how you can change nofollow comment links on wordpress blogs easily. Just a little modification on your wordpress blog theme code can help you in saving your PR juice which gets wasted on useless nofollow links.
Coming to codes,
Open WordPress theme editor, you will find a list of theme files on your current theme. Click on comments.php, it opens comments.php for editing, proceed to following steps.
The normal WordPress theme will have this code to link to comment author, which by default is a nofollow one. Search for this code using your browser search option(Ctrl+F on firefox).
<?php comment_author_link(); ?>
The output of this kind of link when I comment on your blog would be like this: Pavan Kumar
This kind of nofollow link will kill some amount of your PR juice based on the number of comments. You can change the above code into this one:
<?php print get_comment_author(); ?> from <?php comment_author_url(); ?>
With this new code, your comment section will show this for my comment on your blog: Pavan Kumar from http://www.techpavan.com
If you think of advantages and disadvantages of this kind of coding, main advantage is the topic of this post – utilize all PR juice. And disadvantage being your regular readers and commentators might feel it bad to post comment without a link credit (genuine commentators and friends don’t care if it is a nofollow or dofollow link, just they need a link if someone wants to visit their blog).
Note 1: Comments on this blog will not be changed, it will be continued as it was previously.
Note 2: WordPress plugin developers can attempt to develop a plugin to convert all such comment section author credit to javascript so as to bypass Google and still retain a link credit 🙂 .
People who liked this also read:
Hi I edited the file…. but the same format is being shown ..no new format is shown….