How to Remove URL / Website Field from WordPress Comment

By Last Updated July 29, 2021

Disclosure: This post may contain affiliate links, which means we may receive a commission if you click a link and purchase something that we recommended. Read more about Affiliate disclosure here.

Recently a friend approached me asking how he can remove the website field from his blog comment section. There are lots of tutorials on the internet showing this task and in this post, I’m going to explain a few, which I have tried and worked. These workarounds are easy-to-do and require no much programming experience.

How to Remove URL Field from WordPress Comment

Before removing the URL Field
After removing the URL field

Method 1 – Adding a  snippet

Copy the code below and paste into your theme’s functions.php file.


function disable_comment_url($fields) {
unset($fields['url']);
return $fields;
}
add_filter('comment_form_default_fields','disable_comment_url');
How to Remove URL Field from WordPress Comment

Method 2 – Install a plugin – Remove Comment Website/URL Box

Install and activate the above plugin, and it should hide the URL field from the comment form. This plugin has been tested with themes like Genesis, Thesis, WP Twenty Fourteen, but might not work with some themes(It worked in Blogging Niche’s Theme, we use Bone Theme).

You can also try this plugin, Disable/Hide Comment URL, it worked for The Blogging Niche but many users have reported that it did not work for them.

Hope this helps, it sure did help my friend. Let us know in the comments if you know any alternatives or had any issues while trying above methods.

Please consider sharing 💕

Leave a Comment