Blogging and Make Money Online Tips

Blogging and Make Money Online Tips

How To Add NoFollow Attribute To Blog Roll Links

Posted by On August - 5 Under Blogging Tips 9 COMMENTS

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

Click Here To ReTweet This Post

Bookmark & Share This Post: Twitter | Digg | Del.icio.us | StumbleUpon | Reddit | Email | Print

Related Posts

  1. Your Blog Is Filled With Short Posts & Affiliate Links
  2. How To Display A Featured Post or Ad On Your Blog
  3. Get Ur Wordpress Blog Indexed by Google In 3 Days
  4. How To Add A Favicon To Your Blog & Website

Get Full Blogging and Make Money Online Tips Delivered Via E-mail or RSS Feed

RSS Subscription

9 Responses to “How To Add NoFollow Attribute To Blog Roll Links”

  1. Leif from Micfo says:

    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. Philip Thomas from Pip Rebates says:

    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. Rohit Sane from Tech-Freak Stuff says:

    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. Jared from Microsoft Points says:

    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

Leave a Reply

The use of keywords in the name field is NOT ALLOWED. Please use the following format:

YourName@YourWebsite.

Example: If your name is Bryan and the name of your blog is www.007.com, in the name field, you MUST type in Bryan@007. When your comment gets approved your name will appear like this: Bryan from 007. 007 will be linked to your site.

Drive-By comments like "Thanks for sharing", "Nice post", or spammy comments will be DELETED!

PLEASE PLEASE PLEASE! I highly recommend you go through my revised comment policy before commenting.

Spam Protection by WP-SpamFree

By submitting a comment here you grant this site a perpetual license to reproduce your words and name/web site in attribution. If you're not cool with this, please DO NOT submit your comment. Thank you!

Also note that comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.

SPONSORS

Site Navigation