The One-Minute Dofollow WordPress Upgrade
Published Sunday, September 9, 2007 @ 8:14 am • 12 Responses
Want to upgrade your blog to official dofollow status but don’t want to install another unnecessary plugin? This article explains how to eliminate nofollow tags from all trackback, pingback, and commentator links in less than one minute..
After finally repenting of my nofollow sins, I began looking for the best way to eliminate the nofollow attributes that WordPress automatically injects into all commentator URL links.
Of course, the most popular technique for removing nofollow attributes from comment links involves one of the many fine dofollow plugins that are freely available to WordPress users. Beyond nofollow removal, many of these plugins also provide additional features, such as control over when and where nofollow tags should be removed. Many of these plugins are highly recommended.
After considering the various dofollow plugins, I came to the conclusion that most of them were simply overkill. My goal was to remove all nofollow attributes from commentator links — nothing more, nothing less. For this site, I just don’t need all the fancy bells and whistles. And I certainly don’t need yet another resource-draining plugin to worry about..
So, I decided to (gasp!) hack the WordPress core itself. It is not only possible to remove all nofollow tags without a plugin, it is absolutely, positively, drop-dead easy to accomplish. Don’t believe me? Check it out..
The One-Minute Dofollow WordPress Upgrade
- Open
wp-includes/comment-functions.phpand locatefunctionget_comment_author_link() - Within that function, find
rel='external nofollow'and delete thenofollow(and preceding space). - Done.
And that’s all there is to it. After removing that single parameter, every author link for comments, trackbacks, and pingbacks will be followed by search engines and thus pass link juice to their target pages. No plugins required!
About this article
Related articles
- The Deluxe One-Minute Dofollow WordPress Upgrade
- Industrial Strength WordPress Dofollow Upgrade
- Hacking WordPress: Dofollow Whitelist for Commentator Links
- Much ado about nofollow: The Perishable Press Dofollow Series
- Hacking WordPress: Nofollow Blacklist for Commentator Links
- Comprehensive Reference for WordPress NoNofollow/Dofollow Plugins
- Hacking WordPress: The Ultimate Nofollow Blacklist
Dialogue
12 Responses Jump to comment form
November 22, 2007 at 8:11 am
My blog needs a lot of work too, but things like making money and stupid stuff like eating keeps getting in the way. Hell’s Handmaiden used to be much worse– black with red type. I think you can still get a glimpse of that format at Wayback Machine.
Take care. And again, good information. Thanks.
December 18, 2007 at 3:48 pm
Hey there, thanks for the post. I am having trouble with receiving trackbacks.. Pings work fine but trackbacks NEVER make it through.. I tried your advice as my final hope, but that didnt work either… Do you have any idea what might be causing it?
And yes, I am allowing trackbacks from the Manage Options page…
Thanks for your time
March 14, 2008 at 9:24 am
Is it wise to have a do follow blog. I have an African American fashion blog….and I want to montize it. So do follow allow bots to index information better? Also does anyone know of a good seo friendly wordpress skin?
April 14, 2008 at 7:08 am
‘Similarly, if you are selling links and don’t want to get penalized by Google, you should definitely use the nofollow attribute and keep as much of that lucrative juice as possible.’
Great dofollow tutorial, many thanks, I couldn’t get the plugin to show up so I could activate it.
This workaround works a treat!
However, I do not understand the above quote, regarding getting penalized by Google.
Do this mean that you actually need nofollow if you use adsense at all?
Not an issue for me at present, but if so, perhaps for us lamers out here, who have adsense or may consider having it in future, you might want to suggest within your article that append the words dofollow to the original comments file so switchback is easy.
Again, thanks for this fix, I love it.
April 19, 2008 at 6:50 am
Great idea. I will do the same in my blog.
Trackbacks / Pingbacks
[ Comments are closed for this post. ]
If you have additional information, contact me.
← Previous post • Next post →
« News from the Frontline.. • The Deluxe One-Minute Dofollow WordPress Upgrade »
1 • Hell's Handmaiden
November 21, 2007 at 12:28 pm
Nice. I’ve thought about killing ‘nocomments’ but I didn’t much feel like running yet another plugin on my site. Your solution removed that concern. And removing the ‘nofollow’ was every bit as easy as you say.
If I might add, gray text on black is terribly hard to read, especially with a font size as small as you’ve chosen.