How To Remove Website URL Field From WordPress Comment Form ?

If you don’t want people to add their website URL while posting any comment to your WordPress blog then you may remove URL field from the comment form by adding a filter in your theme’s function file.

Open your theme’s function.php file and add the following code:

add_filter(‘comment_form_default_fields’, ‘url_filtered’);
function url_filtered($fields)
{
if(isset($fields[‘url’]))
unset($fields[‘url’]);
return $fields;
}

Source

OR try Hide Comment URL plugin for WordPress. Just install, activate and enjoy. That’s all, no configuration it needs.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.