How to Remove URL Field WordPress Comment Form

I have taught you to step on how to Remove the Website URL Field from your WordPress Comment Form! If you can do this with fewer plugins and without a Plugin then I will teach you without plugins.

Read More: How to Add Download Timer in Blogger and WordPress Post

Step 1

First, you open the Dashboard, then click on Appearance > Theme Editor.

wordpress theme file

Step 2

After this, you copy this code and paste it into the last of your Functions.php file.

add_filter('comment_form_default_fields', 'unset_url_field');
function unset_url_field($fields){
    if(isset($fields['url']))
       unset($fields['url']);
       return $fields;
}

Step 3

After this, you save the Functions.php file.

commenturl

So, friends, I hope that you must have liked this information, if you liked it and you think it is helpful, then do share this post on social media.

Leave a Comment