Skip to main content
All CollectionsTroubleshooting and FAQsFrequently Asked QuestionsComments Module
How to Remove the Website Field from Divi's Comments Module
How to Remove the Website Field from Divi's Comments Module

Learn how to remove the website field from Divi's Comments Module to streamline user experience and reduce spam submissions.

Updated over 3 months 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 can be seen in the screenshot below:

Removing website field from the comment form

Note: If you use a child theme, the PHP code can be added to the functions.php file at the end.

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?