How to Remove Comment Author Website Link in WordPress

Enabling comments is one method by which you can engage readers with you or fellow readers  & by this option you can make First Time user to come to your website repeatedly.

The other side of the coin is, Enabling this option can attract fellow webmasters to get back-links & referral traffic to their website.

It’s good up to that point but some black hat spammers / Auto Commenting system use this option just to promote their products or websites which are irrelevant to your niche.

Some anti-spam plugins like Akismet can be used to filter, but some spammers escape the funnel & get in through.Then! How to Stop this ?

How to Remove Comment Author Website Link in WordPress

Simple solution for that is to remove comment author website link from comment’s.This way you can discourage Spammers to post comments on your blog & only the true reader remains.

Remove Comment Author Website Link in WordPress :

By editing few lines of code you can remove the website url from the comment author’s name.Go to Appearance > Editor, add open functions.php file.

Now replace:

echo get_comment_author_link();

with this code

echo get_comment_author();

That’s it! This is the best method to remove comment author website link in WordPress and this method works fine on any WordPress theme. After doing this authors name would not be linked to their Website name, you will only see the author name & gravatar.

Alternate Method to Remove Comment Author Website Link :

By editing few lines of code you can remove the website url from the comment author’s name.Go to Appearance > Editor, add open comments.php file.

Now replace:

echo get_comment_author_link();

with this code

echo get_comment_author();

That’s it! you have successfully removed author website link from comments. Both the methods outlined here not only remove website links from old comments but also don’t add Website link to author name in all future comments.

Hope this tutorial helped you control Comment SPAM by removing website links from comments, but if you want to keep the website links but want to control comment SPAM then please refer to the article Top Anti-Spam WordPress Plugins to Combat comment Spam.