• I have a FF extension that highlights no follow links.
    I notice that many WP sites out there are no following comment author links.
    How do they do this?

    thank you
    kf

Viewing 9 replies - 1 through 9 (of 9 total)
  • Built-in.

    There are a plethora of plugins that can remove it though.

    Thread Starter kbf

    (@kbf)

    Hi Handy,

    If it’s built-in, somehow it got lost on my installation because my comment author’s name do not have no follow applied by default.

    I looked at comment-template.php + I see this which suggests it would be no-followed:

    function get_comment_author_link() {
    	global $comment;
    	$url    = get_comment_author_url();
    	$author = get_comment_author();
    
    	if ( empty( $url ) || 'https://' == $url )
    		$return = $author;
    	else
    		$return = "<a href='$url' rel='external nofollow'>$author</a>";
    	return apply_filters('get_comment_author_link', $return);
    }

    Any ideas? thank you!

    Are you running any “dofollow” or SEO plugins that purport to do marvelous things?

    Maybe try disabling some plugins to see if that affects it?

    Thread Starter kbf

    (@kbf)

    Thank you Handy for that reply.
    I deactivated all plug-ins and the commenter’s names are still followed.

    Any more ideas?

    thank you!

    Thread Starter kbf

    (@kbf)

    Sorry to double post, but, real quick… just wondering if somebody could tell me where in the code the comment author’s name is made no-follow ……. I think I did get it right above, but, wanted to double check …. thank you.

    Thread Starter kbf

    (@kbf)

    Hi Everybody,

    I hope no one minds that I’m bumping this up, but, it has been over a day …

    just wondering where in the code it is that the comment author’s name is made no-follow….

    thank you!

    Thread Starter kbf

    (@kbf)

    please don’t knock my cabeza off people, but, it’s been 3 days so I’m throwing out my hip and giving it da bump : )

    I think its a case of people having to dig through the code to find it, so I guess you may as well do that yourself.

    if people knew the answer without spending an hour, they’d tell you.

    The code is in the comment-template.php file in your wp-includes folder around line 48.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘No Follow On Comment Author’s Name’ is closed to new replies.