Add a “Nofollow” check box for Wordpress Blogroll links


Ξ July 18th, 2008 | → | ∇ Technology |

In my opinion, Wordpress is without a doubt the finest blog platform around. There is one glaring omission however…

When you add a link to the blogroll there is no easy way to mark it as “Nofollow”. But after doing a bit of research on the web I found a very simple way to add a “Nofollow” check box to the “Add Link” admin page:

1 - Find the edit-link-form.php file in the /wp-admin/ folder and make a backup copy of it. (You should always make a backup copy any Wordpress file before making changes to it).

2 - Open the edit-link-form.php file and search for the following lines:

<tr>
        <th scope=”row”> <?php _e(’identity’) ?> </th>

3 - Insert a blank line before those two lines and add the following code:

<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>

Note: For best results, copy the code above into Notepad, then copy and paste it into the edit-link-form.php file.

4 - Save the file and upload it to the /wp-admin/ folder on your server.

From now on you will have a check box on the admin page where you add links to the blogroll. Check the box and the link will be designated rel=”nofollow”. Leave it unchecked and the search engines will follow the link as usual.

 

One Response to ' Add a “Nofollow” check box for Wordpress Blogroll links '

Subscribe to comments with RSS or TrackBack to ' Add a “Nofollow” check box for Wordpress Blogroll links '.

  1. Phyllis said,

    on July 18th, 2008 at 11:24 am

    Totally over my head :-)

Leave a reply




 

Other sites of interest:


TodaysPhoto.org

CheriasChatter.com

TamiFarthing.com

SheliaCampbell.net

Bad Behavior has blocked 50 access attempts in the last 7 days.