Add the code bellow in your theme’s functions.php file.
function xwp_dofollow($str)
{
$str = preg_replace(
'~<a ([^>]*)\s*(["|\']{1}\w*)\s*nofollow([^>]*)>~U',
'<a ${1}${2}${3}>', $str);
return str_replace(array(' rel=""', " rel=''"), '', $str);
}
remove_filter('pre_comment_content', 'wp_rel_nofollow');
add_filter ('get_comment_author_link', 'xwp_dofollow');
add_filter ('post_comments_link', 'xwp_dofollow');
add_filter ('comment_reply_link', 'xwp_dofollow');
add_filter ('comment_text', 'xwp_dofollow');
And your comments will no longer be nofollow
Thanks to Toscho.de for this little snippet.
Using braindumps, learn all about wordpress plugins. We offer up to date 642-524 dumps and 1Y0-A05 dumps to help you become expert in wordpress.











Tried this but it didnt work. Cant seem to get rid if nofollow its driving me mad
Ok but what about the other links? they are blocking all of them with no follows now. Not just the comment section. This is most depressing.
I gave this a whirl, but Rod is right – all links are now nofollow. Do you have any other thoughts on how to handle this?