How to Remove Website URL Field from WordPress comment?

Keeping the website field in the comment section doesn’t offer anything good. Instead, it puts a website at stake by causing frequent spam attacks – as malicious visitors often attempt to leave negative and irrelevant comments in the website field without your knowledge. 

So it’s essential to remove the URL field. How to remove the website field from WordPress comments?

Table of Contents
    Add a header to begin generating the table of contents

    Apparently, removing the URL field seems like a snap. But you have to make sure you’re using the right tool to avoid further hassle and compensation. What is the best arsenal to carry out the task efficiently?

    In this case, you can keep faith in the WP Adminify plugin, as it will help you achieve the best results without coding. Let’s explore the overall mechanism.

    Hide Website URL Field from Comment Form

    In recent times, WP Adminify has turned into a must-have, indispensable, and reliable plugin for users to design and maintain WordPress Dashboard. 

    Similar to other sections, it comes with an extraordinary module to give you full control over the comments section by removing the website field.

    If you follow the steps in the right order, you can successfully delete the URL field while the comment form is visible. Here are the steps you need to adhere to:

    Configuration

    First of all, you need to make sure the WP Adminify plugin is running on your dashboard.

    As the plugin offers both free and premium versions, you have to install the paid one to unlock its extensive features. Once you install it, your next move is to activate it properly.

    Plugin Configuration
    Keep in mind that you are bound to configure the settings accordingly in the course of activating the plugin. Otherwise, the chance of missing out on some core and useful features may become higher. Always comply with the provided instructions to get it working smoothly on your website.

    Navigate to "Tweaks" option

    Now it’s time to navigate to the WP-Adminify option panel then click on the Tweaks option.

    Nevigate Tweaks

    Enable the "Remove Website Field" option

    If you are on tweaks then you will see “Comment Section”. Click on the comment section and enable the first option called “Remove Website Field”. The rest will be done automatically by the module without even your extreme toil.

    Enable Remove Website Field Options
    Once the option is enabled and working on your WordPress website, you will no longer see the existence of spam links and comments left by spammers. It will also protect your website from the unusual intrusion of unauthorized users.

    Remove URL field from comment without plugin

    You may prefer to remove website fields without using a plugin. That’s why you may seek the methodology of accomplishing such an important task by writing chunks of code sometimes. It’s not a bad idea at all, as it may bear fruit for you over time, even if you have a plugin.
    As deleting URL fields with code doesn’t require much effort and time, you can opt for it without any further hesitation. To do so, you need to write the following lines of PHP code first inside your function.php file:

    Note: Updating your theme can delete the code and you need to write it again on function.php file. To get rid of this issue, you can create a child Theme and paste the code inside your child theme.

    				
    					add_filter('comment_form_default_fields', 'jltwp_adminify_remove_comments_url');
    function jltwp_adminify_remove_comments_url($fields)
    {
        if (isset($fields['url']))
            unset($fields['url']);
     
        return $fields;
    }
    
    				
    			
    Once you’ve successfully written the code, your next move is to update your function.php file. Then just reload the page and check the dramatic change. That’s all you need to do to remove the website field via code.

    Get WP Adminify Now

    Increase your sites's efficiency by powering up your WordPress Admin Dashboard

    Final words:

    It’s a straightforward and popular way to leave spam comments in the website field.

    Unless the activity of leaving unnecessary and attacking comments is terminated, the webpages may be significantly affected over time.  Hence, it’s essential to remove the website field. 

    Throughout the article, we explained the overall methods of applying WP Adminify to remove the website URL field from the comment form.

    We hope you no longer have to suffer from the infliction of spam comments if you can appropriately utilize the integrated module of the plugin.

    If you encounter any barriers to enabling the module, you can leave a comment below.

    Avatar of Roy Jemee

    Roy Jemee

    Jemee is a dedicated content creator, video producer, and Support specialist for WP Adminify plugin users. With a passion for keeping the community informed, Jemee shares valuable insights through blog posts and engaging videos. Need assistance? Jemee is here to help you solve any WordPress-related challenges!

    WP Adminify V.4.0 is almost here. Fancy a Sneak Peek?