How to Remove Website URL Field from WordPress Comment Form

Welcome to DMAS blog, today I will teach you how to remove the website URL field from WordPress Comment Form!

Read further to know how to remove the website URL field from the comment section.

Step-by-step guide on how to remove the website URL field from WordPress comment form to reduce spam comments on your site, it is a manual code method that is easy and simple.

Below I have taught you step wise how to remove the Website URL field from your WordPress Comment Form !, you can do this without a Plugin, then let us start to remove the URL field from the comment form for wordpress website.

Removing the Website URL Field From WordPress Comment Form

STEP 1: First you open the dashboard, then click on Appearance> Theme Editor.

STEP 1 – Go to your WordPress Appearance then Click Theme Editor

STEP 2: After this, you copy the below code and paste it at the end 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 2 – Paste the code in the fuction.php file and click Update

STEP 3: After this, you save the file Functions.php, just by clicking the update button.

STEP 4: Check your website blog section in incognito mode, you will find the website URL section has been removed permanently. 

So, I hope that you would have liked this information, and helped you to learn how to remove the website URL field from the WordPress website comment form section. 

If you liked it and you feel that it is helpful, then share this post in social media.

If you want to learn blogging, digital marketing, affiliate marketing, then contact us, we teach you about how to do blogging, SEO, traffic to the blog, then make sure to visit.

You can follow us on social media too! Facebook, Instagram, and YouTube channel. DMAS Don’t forget to subscribe to this.