How and where to implement no follow on a WordPress Blog

Posted by bkloss | SEO | Tuesday 23 October 2007 4:05 am

This post is about implementing no follow tags on a WordPress blog.

Without getting too technical, the no follow tag is a way to keep search engine spiders from following a link to a new page. This is important to wordpress bloggers for two reasons, first, the automatic addition of no follow tags on comments somewhat dissuades spammers from using scripts to comment on your site. No follow is automatically implemented for comments so you don’t need to worry about it unless you wish to remove the tag.

Now to the purpose of this post. The other reason people use no follow is to rank highly in the search engines for target keywords. Think about a sites ability to rank(authority) as water in a bucket. Incoming links are like spouts filling the bucket while outbound links are holes draining the precious contents. The nofollow tag plugs the holes in your bucket.

So, where would you want to implement no follow?

Below is a picture of my homepage:

The use of the nofollow tag in a wordpress blog

I’ve used a Firefox plugin to highlight in pink, the occurrences of no follow. As a rule of thumb, you want to implement no follow on any link to a page either inside or outside of your site that you don’t want to rank at the expense of your own pages. You can see in the picture above that I no follow links to stumble upon and Technorati in the social networking portion of the sidebar.

To do this, I edit the sidebar.php file in the theme editor portion of the presentation tab in the wordpress admin dashboard. I hunt around for an a href tag signaling a link.

inserting a nofollow tag

Insert rel=”nofollow” into the href tag as shown below.

Save the page and the link should now be invisible to the search engines. I use a firefox plugin called Search Status to highlight the nofollow links on the page.

Unfortunately, the hunt and peck method doesn’t work for the WordPress pages on my left sidebar…

Luckily my friend Dougal Gunter created a plugin that no follows all the pages you create.

Get the plugin:
<?php
/*
Plugin Name: Nofollow Pages
Plugin URI: http://dougal.gunters.org/
Description: Add rel=”nofollow” to Page links
Author: Dougal Campbell
Version: 1.0
Author URI: http://dougal.gunters.org/
*/

// There’s already a ‘wp_rel_nofollow’ function, but it adds
// backslashes, which we don’t need. So we replicate that code
// here without the escaping:

function page_rel_nofollow( $text ) {
$text = preg_replace_callback(‘|<a (.+?)>|i’, ‘wp_rel_nofollow_callback’, $text);
return $text;
}

add_filter(‘wp_list_pages’,'page_rel_nofollow’);

?>

* paste this into a txt editor and save as .php and you’re good to go.

*This will only work on the most recent version of wordpress.

Use these methods to keep pagerank concentrated on your content pages.

Enjoy!

9 Comments »

  1. Comment by murad12s — March 13, 2008 @ 7:00 am

    Hey thats great you have made it a do follow blog :)
    But my question is always do u get quality comments ??
    By this, will your pagerank increase ??? And if i comment these types of blog, then will my blog pagerank ang technorati rank will increase ??
    Hope you will answer my question . Because I’m thinking to turn my blog into a do-follow blog .

  2. Comment by bkloss — March 15, 2008 @ 6:03 pm

    Hey Murad,

    Just to let you know, the Iteration Station is not a do follow blog. I do not allow follow on my comments to discourage spammers. If someone leaves a quality comment I WILL always go to their site and check it out. If there is quality content they may receive a link in my content or trackback if they have a post that is relevant to some of material.

    If you are trying to rank highly in the search engines I would not follow my comments. This will devaluate the on page links to other parts of your site.

    If you comment on blogs that do follow your links, you will be creating inbound followed links to your site. This is an important part of the Google algorithm that determines search engine placement.

    I think it can be a fruitless exercise to comment on non relevant blogs just beacuse they follow. Remember, that the more links on a page the less those links are worth. If you have a comment along with 300 other people, you won’t get much for that link unless it is from a very high PR site.

    I would spend your time creating quality content for your own site that will create meaningful comments, links and trackbacks.

    Beck

  3. Comment by Chantix — March 24, 2008 @ 11:53 am

    First i want to say thank you. If I comment on these types of blogs, will my blog pagerank and technorati rank will increase ?

  4. Comment by bkloss — March 24, 2008 @ 5:47 pm

    No, see the comment above for ideas on how to improve your rank. I also published a new article explaing how to use search status to find potential link partners. Check it out:

    http://www.iterationstation.com/2008/03/22/perform-free-backlink-analysis-search-status/

  5. Comment by Nazar — November 6, 2008 @ 4:22 am

    Ready to argue with the themes of education-all. All the same, you can very well write about it

  6. Comment by Topeljungle — March 29, 2009 @ 1:03 pm

    Nice post! very interesting topic. keep on posting.

  7. Comment by Jessicafuef — May 10, 2009 @ 1:53 pm

    hi, thanks,The article was very well written, very helpful to me

  8. Comment by sandrar — September 10, 2009 @ 2:19 pm

    Hi! I was surfing and found your blog post… nice! I love your blog. :) Cheers! Sandra. R.

  9. Comment by broadcast satellite services — February 11, 2010 @ 9:18 am

    Thanks for creating such a wonderful site. this site was not only knowledgeable but also very stimulating too. We find very few people who can think to create not so easy articles that creatively. I search for articles on a subject like this. I have gone in detail through dozens of blogs to come across know how about this.Looking to many more from your site !!

RSS feed for comments on this post. TrackBack URI

Leave a comment