Become Wordpress Professional - Your Ultimate Wordpress Guide

Monday, 29 April 2013

How to Remove URL field from Comment Form

WordPress is an open source program which trends thousands of plugins and themes free of cost. Using WordPress is very easy as described in our previous tutorials and there is no restriction to it that means anyone can learn WordPress and start a blog online within a matter of minutes.

Today the topic of discussion is How to remove URL filed in comment form in WordPress. When you are using WordPress it might be possible that you are facing bulk of spam comments. In our previous tutorials we described in details how to block spam comments in Wordpress  and today we are going to walk through the process of removing URL field from the comments box that resides under each post.

Removing URL field from Comment form

Spam comments can be more harmful for your blog if it contains URL's. Most of the bloggers try to make back links using the comment form. Deleting URL field from comment form is very easy. 

1. Login to your WordPress admin Dashboard. 

2. Navigate to Appearance >> Editor.

3. Open functions.php file and at the end of the file paste the below code.

function remove_comment_fields($fields) {
    return $fields;

4. Save the file and you are done.

Now the URL field wont show in the comments box under each post.

1 comment:

Please Avoid Spamming. Comments will be moderated before they are published.