SEO Tips & Tricks: They Don’t Want You to Know About

Using NoFollow Makes A Lot of Sense

by John H. Gohde on October 27, 2008

A lot of bloggers have been up in arms about Wordpress forcing them to use nofollow on comment hyperlinks. There are a number of plugins that turn follow back on. This post by John H. Gohde, however, has nothing to do with nofollow hyperlinks in comments. Using NoFollow selectively throughout your blog can make a lot of sense, when done correctly.

 

The Add Link Attribute Plugin

There are a lot of hyperlinks on your blog that make absolutely no sense to have Google crawl them, such as the Register and Login page. A few of them can be manually fixed, such as the trackback hyperlinks, by simply inserting rel=”nofollow” in your code on the Single Post (single.php) template. But anything involving a Wordpress or plugin function, is next to impossible to add a nofollow tag to.

This is where the Add Link Attribute plugin, version 0.3, by Kaf Oseo comes to the rescue. It is a little known plugin that gets the nofollow job done correctly.

 

NoFollow Will Improve Your Crawability

Selectively using nofollow will improve the crawlability of your blog. You never ever want to give Google a hyperlink that ends up in a dead end. For example, the print page plugin that was recently reviewed on this blog creates dead end pages because the plugin itself automatically adds a noindex, nofollow meta tag to them.

Customizing Your Sidebars

Some types of coding is usually located in one of your sidebars; such as sidebar.php, leftbar.php, or sidebar2.php.

The following rather complex PHP code will prevent Google from crawling the print pages on your blog.

<?php if ( (is_page() || is_single()) && function_exists(‘add_link_attr’) && function_exists(‘wp_print’) ) { ?>
       <div class="printer"><?php add_link_attr(‘print_link’,,‘target="_blank" rel="nofollow"’); ?></div>
<?php } ?>
 

And, here is how you can prevent Google from crawling your login and Register page. The correct coding is more complex than most beginners would probably figure out on their own.

<ul>
<?php if  (function_exists(‘add_link_attr’)) { ?>
        <li><?php add_link_attr(‘wp_register’, ,‘rel="nofollow"’);  ?></li>
   <li><?php add_link_attr(‘wp_loginout’, ,‘rel="nofollow"’);  ?></li>
<?php } else { ?>
   <li><?php wp_register(); ?></li>
   <li><?php wp_loginout(); ?></li>
<?php } ?>
</ul>
 

Here, is how you can list out Categories on a sidebar.

<?php if ( function_exists(‘add_link_attr’) ) { ?>
       <?php add_link_attr(‘wp_list_cats’,‘optioncount=1′,‘rel="nofollow"’); ?>
<?php } ?> 
 

And, the ever popluar tag cloud would take this type of coding.

<?php if ( function_exists(‘add_link_attr’) ) { ?>
       <?php add_link_attr(‘wp_tag_cloud’,‘number=40&smallest=10&largest=20′,‘rel="nofollow"’); ?>
<?php } ?> 
 

 

Customizing Your Center Column

Also, if you are using teasers on your home or post page, then most Wordpress Themes will have Google crawl basically the same post three different ways: first by Post Title, next by the Read More link, and again with the Comment link. This makes absolutely no sense. The following coding snippets that are edited in the Main Index Template (index.php) is how you can avoid having Google crawl the same post more than once.

First comes the Read More teaser coding.

<?php if (function_exists(‘add_link_attr’)) { ?>
        <?php add_link_attr(‘the_content’,‘Read More …’,‘rel="nofollow"’); ?>
<?php } else { ?>
        <?php  the_content(‘Read More …’); ?>
<?php } ?>
 

And, here is the coding to cause Google to skip crawling your comments.

      <?php if (function_exists(‘add_link_attr’)) { ?>
            <?php add_link_attr(‘comments_popup_link’, array(__(‘Comments’), __(‘1 Comment’), __(‘% Comments’), ‘commentslink’, __(‘Comments off’)),‘rel="nofollow"’); ?>
      <?php } else { ?>
            <?php comments_popup_link(__(‘Comments’), __(‘1 Comment’), __(‘% Comments’), ‘commentslink’, __(‘Comments off’)); ?>
      <?php } ?>
 

Links to your categories and tags are probably all over the place on your blog. Why have Google follow the same categories and tags over and over again in an endless maze? John H. Gohde would advise that you add nofollow to most of your category and tags links, except for those on your posts. A good place to start would be in the Main Index (index.php) Template followed by your category, tag, and archive templates. In other words, have Google crawl your categories and tags just on your single post page. Everywhere else Google should be blocked from crawling your categories and tags. This approach will radically cut back on the number of hyperlinks that Google will crawl on each page of your blog.

The following coding will do the trick for categories.

<?php if ( function_exists(‘add_link_attr’) ) { ?>
       <?php add_link_attr(‘the_category’,‘  &bull; ‘,‘rel="nofollow"’); ?>
<?php } ?>
 

And, here is the coding for tags.

<?php if ( function_exists(‘add_link_attr’) ) { ?>
       <?php add_link_attr(‘the_tags’,array(__(‘Tags:  ’), __(‘  •  ’), _()),‘rel="nofollow"’); ?>
 

Nofollow can Increase The Crawlability of Your Blog

By the correct use of nofollow on your blog, all your categories and tags will be followed, and you will improve your overall website crawlability by not sending Google to dead ends and on an endless circular maze of hyperlinks. No longer bogged down by going in endless circles, Google will be able to crawl each of your webpages faster. Thus, increasing the probability that more of your posts and pages will be indexed faster.




Author: John H.Gohde









You can leave a comment, or trackback from your own site.



Then help our blog by linking to it. Simply copy and paste the code below into your website (Ctrl+C to copy)

It will look like this: Using NoFollow Makes A Lot of Sense


Digg It  Add To Delicious  Stumble This  Add to Technorati





7 Responses:


  1. Christopher Price Says:

    I used to agree that adding nofollow to tags and category pages made sense.

    I don’t anymore.

    First, Matt Cutts has historically said “don’t worry about it… Google understands multiple pages on your site will have similar content.”

    But, here’s the real reason: What’s the bad thing about having multiple pages crawled? Your first reaction might be the (dreaded) Supplemental Index. But, if you have a blog, having some of your pages be supplemental isn’t so bad.

    I really don’t see why having low-performing pages wind up in supplemental is so bad. The fear is having the whole web site wind up there… but Google has said that comments and tags won’t do that.


  2. John H. Gohde Says:

    I believe that you are confusing, Indexing with Crawlability issues.

    Index tags and categories, YES. But, having Google crawl the same tags and categories over and over again in an endless maze of circular links, adversely affects the crawlablity of your website as a whole.

    Fewer links to crawl on each page, allows Google to crawl each of your pages faster. And, thus encourages Google to update more of your links.


  3. SOFTplus GSiteCrawler John Mu Warning « John H. Gohde scribbling & bibbling Says:

    [...] on my SEO Blog I have all my WordPress trackback URLs blocked by using nofollow. Yet, the Softplus GSiteCrawler sitemap generator listed all the trackback URLs in the sitemap. [...]


  4. DeViLnoAnGeL InFo Says:

    Dear author,

    Can you help me to teach me how to insert “external nofollow” tag in trackback/pingback ? My blog has trackback/pingback with “external” tag only and i want it for sure to change it to “external nofollow” or “nofollow”.

    Hope you can teach me, i’m very confuse to find it that way manually without using plugin.


  5. John H. Gohde Says:

    Just now saw this comment. Unfortunately, I am about to shut off my access to the Internet for a while because I am in the process of switching to DSL.

    What you need to do is edit your theme files. You should edit your theme file for single posts which is usually single.php.

    Also, identifying which theme you are using could help me.

    It might take me a week or so before I can regularly access my blog and respond to any more comments.


  6. KeHoeff Says:

    hey this is a very interesting article!


  7. Yudi Wardana Says:

    Nice tutorial…



Leave a Comment

 

Menu

» Using NoFollow Makes A Lot of Sense




Most Popular Posts

  1. Virus Checkers Are Dangerous
  2. Dead Computers Cannot Be Rejuvenated
  3. Threatfire is Perfect

 

 

Subscribe

Meta


Recent Posts

  1. All in One SEO
  2. Always Keyword Stuff Intelligently
  3. Always Link To Your Home Page
  4. Anchor Text – A Pandora’s Box

Copyright (C) 2008 - 2010 by John H. Gohde
All Rights Reserved.
Email | Site Map | Advanced Search