Add NoFollow Relationship to WordPress Blogroll to Increase PageRank

Blogroll in WordPress displays a list of blogger’s favorite blogs in the sidebar of their blog. Blogroll provides links to external blogs in easily managed way. Some webmasters also use Blogroll to display backlinks to other external sites for link exchange or link buying. In reality, links added by WordPress blogroll is actually useless textlinks that are discouraged by Google and most other search engines, especially when the links are paid off or in exchange for a link back.

Thus, linking blindly to external sites MAY (if your blog or website has been caught and labeled by Google machine algorithm as participate in illegal link scheme to boost page rank, although you’re not) severaly negatively discount your own site PageRank (PR) value, or worst, affects your site ranking in search engine results positioning. To avoid any potential backlash from the external links in Blogroll, it’s best to add rel=”nofollow” attribute to the <a> tag in Blogroll as suggested by Google so that no PageRank value is passed through the links, and the links won’t penalize your site ranking.

To automatically add and attach rel=”nofollow” attribute to each and every outgoing links in Blogroll, we need to hack through WordPress core source code file. Go to wp-includes/ directory of your blog root folder, then edit the bookmark-template.php file with any text editor such as vi.

Locate the following line (it’s at line 48 for Wordpress version 2.3.1):

$output .= '<a href="' . $the_link . '"' . $rel . $title . $target. '>';

Append the rel=”nofollow” to the line by changing the line to the following:

$output .= '<a href="' . $the_link . '"' . $rel . $title . $target. ' rel="nofollow">';

Save the file when done.

All Blogroll links in blog sidebar will now have rel=”nofollow” attribute tagged with the link, which force search engine spiders and crawlers to stop following the links. Adding the nofollow attribute may not change the fortune of your site immediately, but will surely reduce the risks of been penalized by search engines for excessive linking.

21 Responses to “Add NoFollow Relationship to WordPress Blogroll to Increase PageRank”

  1. press
    May 20th, 2009 03:37
    21

    At what point would outgoink links have an effect. It is sometimes unavoidable to reciprocate to get a relevant link and blocking this link is not fair or ethical.

  2. Robby Morton
    December 30th, 2008 12:44
    20

    Thanks for the info. Better and easier then adding the plugin. Simple copy and paste. Thanks, I added it to my blog.

  3. Dan Root
    December 22nd, 2008 16:39
    19

    Everyone, I have discovered this hack no longer works in WP 2.7 – and fortunately someone developed a plugin to bypass this all together. The plugin allows you to pick and choose which blogroll links you want to add a NOFOLLOW tag to. You can read more about and download the plugin at this link:

    http://wordpress.org/extend/plugins/nofollow-links/

  4. SEO Binh Nguyen
    November 4th, 2008 10:15
    18

    Justin Cook had a perfect solution for adding nofollow attribute to any chosen link. But thank you for this post which lead me to there.

    And your solution is good too, but just too overwhelmed. Some blogroll links must be followed, such as your own other blogs and sites.

  5. RC
    October 29th, 2008 02:55
    17

    Lo mejor, y para hacerlo selectivo a ciertos enlaces del blogroll es utilizar esto:


    <input class="valinp" type="checkbox" name="follow" value="nofollow" id="nofollow" />

    De esa forma en cada enlace del blogroll tendremos una casilla por si queremos marcar rel=nofollow
    en la linea 258 del wp-admin/edit-link-form.php

    Saludos.

  6. Freeware Collection
    October 4th, 2008 22:46
    16

    It’s not a good idea to hack to the core of WordPress because it maybe causes “hidden” errors when your website runs, and you have to do it once when upgrading website.

    I recommend to use the the Nofollow Blogroll here: http://wordpress.org/extend/plugins/blogroll-nofollow/
    It does everything automatically for you without any change in core code of WP.

  7. NoFollow Links Page WordPress Plugin | Internet Marketing Idea
    July 31st, 2008 18:21
    15

    [...] Add Nofollow Relationship To Wordpress Blogroll To Increase Pagerank [...]

  8. John
    June 30th, 2008 14:55
    14

    Afortunadamente el pagerank es sólo unas de las cosas a tener en cuenta a la hora de proyectar un sitio web.

  9. Gregory Brine
    May 25th, 2008 11:30
    13

    That’s a great suggestion and something everyone should do, but it’s also useful to have links to those sites within your content as then it’s related to the blog. But, I’m using the Blogroll Links plugin in my wordpress to still give me a page of links to these sites, and not harm my overall pagerank.

  10. JMOZ
    March 5th, 2008 06:23
    12

    I meant to say you can now

  11. wordpress blogroll add nofollow
    March 5th, 2008 06:21
    11

    You can not get a proper plugin for this rather than hacking core files.

    wordpress blogroll add nofollow.

  12. Garry Conn
    February 20th, 2008 07:33
    10

    Awesome tips man… thanks so much. Ideally though, it would be better if in the WP-Plugin format so that you don’t have to go back and update every time you have to update to the latest version of WP

  13. engamed
    February 19th, 2008 03:14
    9

    Takker og bukker:) flott tips!

  14. Curso de Ingles Londres
    February 16th, 2008 15:07
    8

    Answer English es una página web que ofrece cursos de inglés en Inglaterra, otorgándole a los alumnos la oportunidad de aprender inglés en situaciones de la vida real.

  15. Add NoFollow Tag To Your BlogRoll Links | Internet Marketing Trip
    January 25th, 2008 22:30
    7

    [...] provided me with this nofollow relationship to wordpress blogroll solution from mydigitallife.info. You have to edit a file, nothing complicated, this will add the [...]

  16. How to add rel=”nofollow” to WordPress blogroll links
    January 23rd, 2008 15:49
    6

    [...] looked around and found this blog entry which led me to the correct template file but suggests [...]

  17. Internet Ganhar Dinheiro
    January 10th, 2008 10:13
    5

    Boa Dica! Obrigado!

  18. SEO CheckList » How Does a Blogroll Harm Your Blog?
    December 26th, 2007 16:06
    4

    [...] would add the “nofollow” in the list of rel attributes. You could also try this one by My Digital Life and see if it works for you [...]

  19. Igor The Troll
    December 22nd, 2007 22:36
    3

    I found a hack how to do it properly so you can follow or nofollow each individual link in your blogroll.

    Hack
    WP Blogroll to nofollow or follow

    Enjoy,
    Igor

  20. Igor The Troll
    December 20th, 2007 11:15
    2

    I implemented the hack, but I find it really strange on WordPress part that under the BlogRoll Managment Tab there is a rel form field in the link edit mode, but it does not work.

    Looks like it has been disabled intentionally by WP, to give them link juice, when the blog is first born…

    Do you know how to enable this functunality, to be able to assign rel value in the BMT link edit mode?

    Thanks,

    http://www.igorthetroll.com/blog/

  21. wayne
    December 12th, 2007 02:32
    1

    How could I implement this for links that are in my posts???

    I know I could do it by hand, but I also have other writers that probably wouldn’t go to that trouble.

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.

New Articles

Incoming Search Terms for the Article

wordpress blogroll nofollow - add nofollow to blogroll - wordpress nofollow links - wordpress przenosi nofollow - outgoing link converter wordpress - nofollow manual blogroll - wordspress links follow no follow - nofollow links in blogroll - wordpress link relationship no-follow - nofollow wordpress blogroll - wordpress blogroll to links - wordpress link relationship - add nofollow on comment list - wordpress add nofollow to links - wordpress blogroll rel - add nofollow for outgoing links wp - blogroll nofollow to wordpress - change wp links from rel nofollow - wordpress nofollow blogroll - wordpress nofollow in blogroll - xoxo blogroll nofollow - add link for relationship -