All Collections
FAQ's and Troubleshooting
How to remove the website field on Divi's comments module
How to remove the website field on Divi's comments module

Remove the Website Field from the Comments Form

Eduard Ungureanu avatar
Written by Eduard Ungureanu
Updated over a week ago

Out of the box, WordPress will automatically display a comment form (usually on Single Post pages) which contains the following fields:

  • Comment text area

  • Name

  • Email

  • Website

  • Checkbox for saving the name, email and website in the browser's local storage

The same list of fields is going to be used by Divi's Comments Module.

Remove the website field from the Comments module using custom PHP code

  1. Go to Plugins → Add new and using the search form, and search for Code Snippets plugin

  2. Install and Activate the Code Snippets plugin

    Install the Code Snippets plugin

  3. Go to WordPress Dashboard Snippets Add new and create a new PHP snippet

    Create a new PHP snippet

  4. Give it a title

  5. Copy/paste the following PHP code:

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

The result of the above PHP snippet will be:

Removing website field from the comment form

Note: if you are using a child theme, the above PHP code can be added to the functions.php file.

Remove the website field from the Comments module using a 3rd party plugin

  1. Go to WordPress Dashboard → Plugins → Add new

  2. Install and Activate the plugin

  3. Open the plugin's settings by clicking on the sidebar item called QC CLR Settings

  4. Enable Remove WEBSITE Field from Comment Form option

    Comment Link Remove and Other Comment Tools plugin
Did this answer your question?