How To Add NoFollow Attribute To Blog Roll Links

This tutorial is going to be straight forward. It’s designed for wordpress bloggers who want to display their blog roll links but don’t want to pass any Page Rank (PR) juice to the links

Simply open wp-admin/edit-link-form.php and look for the code below:                  

<td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e(‘friendship’) ?> </span></legend>

Immediately after the above code, copy and paste the code below

<label for=”nofollow”> 
<input class="valinp" type="radio" name="friendship" value="nofollow" id="nofollow" <?php xfn_check(‘friendship’, ‘nofollow’, ‘radio’); ?> /> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e(‘nofollow’) ?>
</label>

Save the file and log into your dashboard. Click on Links and select a link you want to add the nofollow attribute to.

In the editing page, scroll down to Link Relationship (XFN) section and under friendship select the nofollow radio button.

2009-07-13_215024

Scroll back up and update the link. Navigate to your site and check if that link has been nofollowed. You can get a Firefox nofollow add on from Zachary Fox.

P.S: The above tutorial was done with WordPress Version 2.8.1 in mind. I’m not so sure if it will vary with past wordpress versions.

Also make sure to back up the edit-link-form.php file before editing it should in case anything goes wrong.

This is a modified & updated version of Pinoy Console’s How To Add “Nofollow” Attribute In Your Blogroll

Feel free to let me know how this worked out for you.

Update: I just stumbled on this plug-in that automatically adds nofollow to ALL your blogroll links. Unlike the file hack above, you can’t choose which links to follow and which not to.

Here’s the download page: Nofollow Blogroll Links.

Enjoy



Related Articles You May Like To Read
  1. How To Add Nofollow To WordPress Tags and Tag Cloud
  2. How To Add A Favicon To Your Blog & Website
  3. How To Add A Floating Bookmarks Panel To Your Blog
  4. Your Blog Is Filled With Short Posts & Affiliate Links
  5. How To Properly Configure ReTweet Links & Buttons

Disclosure: Please note that each time you make a purchase via any referral link on this site, I make a commission. Click here for more info.


9 Comments so far. Leave Yours Below

If you want to ask a question regarding anything from blogging to making money online and wordpress plugins tips, do please make use of the floating search bar at the bottom of this site. If you don't find what you're looking for, then feel free to ask your question

ALL COMMENTS WITH KEYWORDS AS NAMES WILL BE DELETED! TAKE NOTE!


Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.


  1. I follow your blog for quite a long time and should tell that your articles always prove to be of a high value and quality for readers.onpage optimization is a important part of bloggers so we should always look for the things which are highly helpful for us.

    Best Regards,
    Leif

  2. Thank you very much sir, this worked a charm. I was looking for an option to nofollow some of my BR links in 2.8+ and this hack was a rare treat. You may want to say that the code snippet your looking for is around the 200-210 mark (obviously differs), but either way great work!
    Not sure why they don’t make this as standard in the new WP versions tbh.

  3. Most of the People share Blog Roll links for getting an Advantage in SEO! What is the use if you make the Attributes of link in the Blog Roll as No-Follow?

    • @Rohit Sane: As I’ve tried to transmit to most bloggers, Google now frowns on sitewide dofollow links. You wouldn’t be helping your site by going dofollow on blog roll links neither will the folks you’re linking to benefit either.
      I just discovered another plug-in that could make it worth your time and that of your visitors. It’s dofollow only on the home page and nofollow on other pages.
      Check it out here Nofollow Blogroll SEO

  4. Adding a nofollow attribute to the links is pretty easy but the one who is not good with tagging will try to use some plugin for the blog or website. Is it good to use some plugin or we should add that manyally for good results?

  5. It worked, just what I needed too :)
    .-= Microsoft Points hopes you will read…Death by Cube =-.

  6. Thanks for this tips, i was looking for that. specially i think it’s very important for my seo factor.
    .-= Rakesh Solanki hopes you will read…Fixup Nofollow Issue After WordPress Installation =-.