WordPress SEO tip: No Follow your comment links

1

Just take the following code and put it into your functions.php file right before the ?>:

function add_nofollow_to_reply_link( $link ) {
return str_replace( '")\'>', '")\' rel=\'nofollow\'>', $link );
}
add_filter( 'comment_reply_link', 'add_nofollow_to_reply_link' );

1 COMMENT

LEAVE A REPLY