Remove Website URL Field From WordPress Site Comment Form

Don’t know how to remove Website URL Field From WordPress Site Comment Form? A WordPress website has a comment form.

The audience can go to that comment form & fill in their comments, name, email & website url. But, not every person has a website & so they would prefer to not fill this website url field.

In this article we will learn, how to remove this website url text field completely. By doing this, the audience is not forced to fill this particular field in the comment form.

Why Remove URL Field From WordPress Site Comment Form

As mentioned above, not every person who wants to comment has a website of their own. In such a case the Website URL field in the Comment Form might dissuade someone from commenting. They might think that the Website URL field is mandatory & so their comments won’t get submitted for review without filling that field.

And that is why you should remove Website URL field from WordPress site Comment Form so that the audience gets encouraged to comment.

Remove Website URL Field From WordPress Site Comment Form

Remove Website URL Field From WordPress Site Comment Form

There are two ways of removing this field.

You can either do this with the help of a plugin or by inserting a code in your functions.php file.

Removing Website URL Field With Plugin

For removing the website url field, we are going to use Remove Web Field From Comments Form plugin.

Go to your WordPress Dashboard => Plugins => Add New => search for “Remove Web Field From Comments Form“.

Remove Web Field From Comments Form

Once you have found the plugin, install & activate it. If you don’t know how to install a plugin then check out our post on, how to install & activate a WordPress plugin.

After you have activated the plugin, you will get an extra field at the end of your Settings => General tab.

Remove Web Field From Comments Form Settings

Simply check the CheckBox to disable the website url field from the comment form.

Now to check if the plugin has worked, go to any post or page that you have on your website. You will realize that the Website URL field has been disabled. Take a look at the picture below,

Website URL Field Removed From Comment Form

Removing Website URL Field With Coding

Another simple method is to add a small code to your WordPress website’s functions.php file.

Go to you Appearance => Theme Editor & click on functions.php file. Add the following code to the file,

add_filter('comment_form_default_fields', 'unset_url_field');
function unset_url_field($fields)
{
    if(isset($fields['url']))
       unset($fields['url']);
       return $fields;
}
Remove Website URL Field With Code

After you have added the code don’t forget to click on Update File. Now check if the function has worked as per your specifications.

Simply open any post or page & scroll down to the comments form. You will realize that the Website Url text field is no longer available.

Website URL Field Removed From Comment Form

Conclusion

There are various plugins to remove the Website Url text field from your WordPress website’s comments section.

But the most easiest & simplest plugin is Remove Web Field From Comments Form.

Also for someone who has a bit of a coding knowledge, they can directly use the code to remove the Website Url field, but before making any changes to the functions.php file take a back up of your website & database.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top
Copy link
Powered by Social Snap