View Single Post
Old 2007-04-18, 03:58 AM   #1
virgohippy
Madness is like gravity. All it takes is a little... push.
 
virgohippy's Avatar
 
Join Date: Feb 2006
Location: California
Posts: 1,679
Turn off nofollow in WP?

Some people here have demonstrated an interest in establishing a blogging community. The easiest way to do this is leave comments on each others' blogs and to give them motivation to leave comments on yours with SE friendly backlinks.

Unfortunately, by default Wordpress has comments set to "nofollow" (I'm posting this because I just recently learned this myself - sorry to those who've left comments in the past ). WP doesn't have an option in the admin to turn this off so to change that you'll have to edit your code.

Edit: hony suggested a better way using the plugin dofollow.

How to disable "nofollow" comments in WP:

1. Open the wp-includes/comment-function.php file.
2. Do a find for "nofollow" in notepad, or whatever code editor you use.
3. Edit the line

Code:
$return = "<a href='$url' rel='external nofollow'>$author</a>";
change it to

Code:
$return = "<a href='$url' rel='external'>$author</a>";
4. Update the file on your server.
5. Give and get comments.

If you're worried about comment spam I've heard numerous people mention they're more than satisfied with Akismet. It's free and easy.

Pleasant blogging.

~
__________________
~Warm and Fuzzy.

Last edited by virgohippy; 2007-04-18 at 04:24 AM.. Reason: Better way to do it. Doh!
virgohippy is offline   Reply With Quote