remove website url from wordpress comments form

Sharing is caring!

You can remove website URL field from comments form in two different ways:

Method 1: Remove website URL field using functions.php
Method 2: Remove website URL field using plugin

Method 1: Remove website URL field using functions.php

You just need to write this below code in functions.php file.

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

After adding this below code you will see that URL field will be removed from comments form.

  • Bluehost

  • Method 2: Remove website URL field using plugin

    In order to remove URL field from comments form, you need to install Remove Comment Website/URL Box plugin.

    remove url field from wordpress comments field

    After activating this plugin you will see that URL field will be automatically removed from comments box.

    Sharing is caring!

    Rishab Kapoor on FacebookRishab Kapoor on LinkedinRishab Kapoor on TwitterRishab Kapoor on Youtube
    Rishab Kapoor
    A Blog writer, a Web developer and a passionate teacher. Teaching on YouTube from last 7 years. Like to write articles about Web designing, Web development, Digital Marketing, and Online money making techniques. If you have any question about Web technologies and your career then you can contact me via above my social media profiles.