How to Remove URL or Website Field From WordPress Comments Form

It’s true that WordPress web sites entice a whole lot of spammers as most of them know the way straightforward it’s to construct backlinks off from them. Most bloggers have no idea easy methods to management spam and they don’t have the time to average every remark.

That is usually how a spam weblog remark seems like

How to Remove URL or Website Field From WordPress Comments Form
How to Remove URL or Website Field From WordPress Comments Form

Discover that these spammers don’t use their actual identify and at all times go away a backlink to a web site, which normally might not be associated to your web site.

The proper technique to discourage spam is to take away the “Web site” or “URL” discipline completely out of your WordPress web site.

Let’s give it some thought, the “Web site” discipline will not be helpful normally, as real commenters most likely don’t personal an internet site and it merely permits spammers to construct hyperlinks to their web sites. The extra feedback containing backlinks will trigger your posts to have extra outbound hyperlinks and it’ll trigger hurt to your search engine marketing efforts.

This technique is just prompt to those that are effectively versed in modifying WordPress recordsdata and in addition preserve full documentation and backups of their WordPress web sites.

Navigate to WP Admin -> Appearance -> Editor and select functions.php (It is also known as “Theme Functions”.)

Insert the following code at the last line in the functions.php

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

Leave a Reply

Your email address will not be published. Required fields are marked *