I found this bit of code a while ago that’s handy if you want to add someone to your blogroll or just want to stop the link juice from being drained by the default links in your blogroll…that is if you haven’t deleted them already…anyway, open this page in an html editor or notepad or whatever you use…I use Homesite because it colors the code to make it easier to read…download and open this file: (note: always download files first, that way you’re sure to get the latest copy…even if you’re the only one touching the site, just get into the habit of downloading first, that way it becomes automatic, so whenever you’re working on a site, you’ll just do it…trust me, you’ll thank yourself at some point down the road…and download twice, put one in your backup folder and then download one to work on…)
Download: (I’ve turned the brackets around in order to show the code…that code tag I think is supposed to makew it readable in posts, but it doesn’t so…when adding it to your WordPress blog, turn the brackets around!)
wp-admin/edit-link-form.php
Look for this line of code around line 190:
>tr<
>th scope=”row”< >?php /* translators: xfn: http://gmpg.org/xfn/ */ _e(‘identity’) ?< >/th<
Then insert this chunk of code right before the opening TR:
>!–Start nofollow code–<
>tr<
>th scope=”row”< /th<
>tr<
>th scope=”row”> nofollow >/th<
>td<
>label for=”nofo”<
>input class=”valinp” type=”checkbox” name=”nofo” value=”nofollow” id=”nofo” >?php xfn_check(‘nofo’, ‘nofollow’); ?< /<
nofollow>/label<
>/td<
>/tr<
>!–end nofollow code–<
I added the comment code as well so when you look at it in the future or want to copy it again, you can just go into the admin and copy it. Personally I keep a code snippets folder on my machine and every time I find something useful I open a Notepad file and cut and paste it, then save with a name that will be easy to identify in the future. I open a separate Notepad file for each code snippet.
After you've added that code and uploaded the file, go to your links section, scroll down and you should see the nofollow check box as in this this image:
