How to remove nofollow attribute from your WordPress blog

As you may already know, WordPress the rel=”nofollow” attribute in comments. That makes any comment with a link on it have no significance for Google when they ranks websites. Getting rid of the rel=”nofollow” attribute is one of the tactics that many WordPress bloggers follow to get more people comment on their blogs. And in my view, this is quite fair – comments add content to a certain blog, the blog pays them back with a link that will be counted by Google, will rise their pagerank and make their way up in Google searches. So, let’s begin.

There are two ways through which you can turn off rel=”nofollow” attribute in your blog:

1. Changing WordPress Core

Editing WordPress core might not be a good idea for bloggers who are not very familiar with coding. For others, like me, who can do any code editing, online through FTP or offline, this is something that they do everyday. That would save the time of downloading, installing and making work another plugin. However, keep in mind that you need to redo this action every time you do an upgrade.

There is only one file you need to edit and all you have to do is remove the word nofollow. This word is located at wp-includes/comment-template.php on line 148. It looks like this:

{code type=php}
$return = “$author“;

All you have to do is remove the word nofollow only and save the file.  This is it!


2. Employing a Plugin

If you do not feel comfortable with editing the WordPress core, you can employ a plugin to do that for you. Keep in mind that you will have the plugin too, when new versions are released. Below you will find a list of such plugins. Chose the one that is good for you and install it.

  1. DoFollow 4.0
  2. NoFollow Free
  3. Lucia’s Linky Love
  4. Sem NoFollow
  5. Link Love
  6. Remove Nofollow

Time for publicity: By removing the nofollow attribute you are giving something away for free to your visitors, tell this to your visitors. You will motivate more people to comment for sure. Good luck!

PS: Don’t forget that WPlancer is a DoFollow blog and I love to hear what you think. Thanks!

Baki Goxhaj
I’m a web consultant specializing in WordPress. I love elegant solutions, quality code and a good laughter.
You may also like
How to Install Fonts in Ubuntu
How to Create a Folder Shortcut on Ubuntu
  • Cole @ Four Jandals May 23,2012 at 2:09 pm

    Thanks mate! Trying this with 1 of our plugins now.

  • Cole @ Four Jandals May 23,2012 at 2:08 pm

    Thanks mate! Trying this out on one of our plugins now which we need to remove the dofollow from.

  • Jonas Apr 26,2012 at 6:50 pm

    I’ve told my friends for some time that my blog was dofollow – boy was I chocked when I got told it was nofollow. Well, thanks to your post here, I went into Filezilla, removing the rel=”external nofollow” < The only nofollow tag I could find. And I installed the Dofollow 4.0 as well – can't be too sure, can we? 🙂

  • Web Design La Porte Jan 17,2012 at 9:27 pm

    Thanks guys, great article! I actually found you with a google search for “why remove nofollow from wordpress.” It makes sense to remove the NoFollow attribute from your blog to get more comments. I believe that is only fair when your visitors are leaving good feedback on your site!

  • Imraan Aug 7,2011 at 7:24 am

    I use the plugin commentluv and its quite useful. may be you guys can have a look..

  • Mona Jan 27,2011 at 6:20 pm

    hi there i am new in wordpress kindly help me i want to try the first way to remove rel no follow but can’t find the link hope you can help me, thanks

    • BANAGO Feb 1,2011 at 8:13 am

      Which method did you try?

  • Used motorhomes Dec 4,2010 at 9:23 am

    very useful tips you have given here for making our blog do follow by using different plugins or by editing code.

    • BANAGO Jan 11,2011 at 8:51 am

      Thanks – I appreciate your good words.

  • Vergent@ T1 Internet Sep 28,2010 at 5:53 pm

    I read recently that removing nofollow on comment links is actually beneficial for blog owners these days because Google now uses the amount of activity your site generates in order to determine where it ranks in the search engines. Seems like removing the nofollow attribute would increase activity and really help blog owners out! Thanks for being dofollow!

  • Lanna@Explore The Internet Aug 20,2010 at 4:06 am

    I wish I have found your site earlier. It took me the whole evening yesterday to accomplish my mission: dofollow WordPress without a plugin. I don’t want to use too many plugins because they will slow down my site.

    I finally found someone’s blog that was talking about removing nofolow attribute from WordPress Core file. So I did it yesterday with two of my blogs.

    Anyway FYI if you have a dofollow blog/website you can submit it to to get backlink.

  • Revitol Jul 14,2010 at 11:13 am

    Excellent post! I’ve been looking to change this across my blogs. Thanks for the heads up and the follow 😉

  • Naishster Feb 10,2010 at 2:36 pm

    Thanks for the info, very interesting but I heard that google penalizes blogs that are do follow. Is that correct?

    • BANAGO Feb 10,2010 at 3:55 pm

      Never heard of something like that.

  • psd to css Sep 23,2009 at 7:20 pm

    Well, there are some plugins which remove nofollow attribute automatically. Personally, I use them.

  • […] Ideja: ZeriYt, WpLancer […]

  • BANAGO Sep 1,2009 at 2:53 pm

    Yeah, I’m coding all day, that’s way 🙂

  • Camping Table Sep 1,2009 at 2:51 pm

    Glad I could be of help. 🙂 Isn’t it a pain to have to change it even time there is an “upgrade”? LOL… life in “the code” I guess.


  • BANAGO Aug 31,2009 at 10:25 pm

    Hi Bill,

    My blog is actually nofollow because of the upgrade. I use the core file change approach to change nofollow to dofollow and I have not done yet with this upgrade.

    Thanks for reminding me.

  • Camping Table Aug 31,2009 at 9:55 pm

    Why would you promote changing a blog to do follow but then have this one as no follow? Kind of ironic isn’t it?

    When WP (and others) went no follow by default, it affected blog traffic numbers for all blogs that did not change the follow status. I firmly believe that most bloggers don’t even know that the drop in their traffic is a direct result of that default status.


  • rock & republic jeans Aug 8,2009 at 4:48 pm

    WP rocks. I have a WP blog, though it is not properly customized.

  • Dollar Buddies Ragu Jul 28,2009 at 12:04 am

    Oh..Interesting tip..I was not aware of this..Thanks buddy

  • Bonu Apr 27,2009 at 6:23 pm

    Thanks post very interesting and site very very nice…..

  • Dofollow Apr 24,2009 at 2:06 pm

    Well, there are some plugins which remove nofollow attribute automatically. Personally, I use them.

    • BANAGO Apr 24,2009 at 3:58 pm

      Yes, I think so too. Can you please tell me if I have missed any in the list above?

  • George Serradinho Apr 24,2009 at 5:48 am

    I have DoFollow by Kimmo Suominen installed on my blog.

    I also have implemented CommentLuv to give my commenter’s some link love to show their last post.

    I think with this combination, it helps out all in the end.

  • Jostmon Apr 21,2009 at 1:17 pm

    @Jessica: I noticed that too. It bothers me that some might be using the dofollow to attract visitors by writing a blog about it and then not actually implement it. The no-follow free plugin is also lacking in the way of not making it clear what the criterion is for dofollow (i.e. members with 5 posts or more, etc.). Just saying comments may be no-follow free is too vague imo and is akin to deceptive advertising.

  • BANAGO Apr 19,2009 at 1:58 pm

    @Frode: Thank you for your great comment too.

  • Frode H Apr 18,2009 at 10:50 pm

    Thank you for a great, detailed and correct guide. I have been reading blogging tips for weeks now, and “pimping” my blog to get the most out of it, and only today I found out what the dofollow/nofollow issue is all about. And in one minute my blog is a dofollow blog, thank you for this great tip. Usefull two thumbs up.

  • BANAGO Apr 17,2009 at 10:21 pm

    @ Jostmon: I would be glad to be a member of freelancehome. just let me know when it comes alive.

  • Jessica Apr 17,2009 at 11:56 am

    Its ironic that many bloggers talk about this but then they actually use no follow I have seen many blogs leeching off the dofollow movement claiming to be dofollow sites but actually use nofollow, they are worse than the comment spammers in my eyes.

    • BANAGO Apr 17,2009 at 10:18 pm

      Yes, that can be true some time. That is not the caste with me though.

  • Restate Apr 17,2009 at 11:25 am

    “Editing WordPress core might not be a good idea for bloggers who are not very familiar with coding”

    “This is nice plan”

  • jostmon Apr 16,2009 at 3:55 am

    If you want to know what I think, I would say that you are a good and generous person. I have used the nofollow free at one of my blog site ( but I like the editing of the core more. I hope that you will sign up at my upcoming site ( It should be completed in a couple of months and will need good members. Thank you.

  • Do follow blogs | Webscene Jan 23,2009 at 10:41 am

    […] Er du interesseret i at give lidt link juice til dine trofaste læsere? Så hent et do-follow-plugin til din wordpress blog hos WPLancer. […]

Leave Your Comment

Your Comment*

Your Name*
Your Webpage