AccessPress Themes Discount Offer

How to Remove Website URL from WordPress Comment Form?

0
Remove Website URL from WordPress Comment Form

Are you getting tired of dealing with the comment spammers on your WordPress blog? Well, if you are then you have visited the right.

In this article, we will show you how to remove website URL from WordPress comment form to discourage the spam comments on your web blog.

We will explain how to remove the website URL from WordPress comment section by:

  • Adding Codes on theme’s function.php file
  • Using a WordPress plugin

But before we go through steps, let’s talk about:

What’s a spam comment? Why do people submit spam comments on the blog/post?

Spam comments are unwanted off-topic/irrelevant comments submitted manually by the users. These comments add no value to the discussion and approving them won’t make any sense for your blog/post.

By default, WordPress comes with inbuilt comment form with different fields: name, email, website URL, and the comment box. When displaying the comments, WordPress will automatically hyperlink the name of the commenter with the provided website URL. These hyperlinks act as the backlinks which are good for the SEO of the spammer’s website. So, this is why the blackhead SEO marketers and newbie bloggers submit spam comments on blog/post.

Removing Website URL from WordPress Comment Form by Adding Codes on theme’s function.php file.

Login to your WordPress dashboard.

Then, go to Appearance >> Theme Editor.

There, select Theme function.php and paste the following code.

add_filter(‘comment_form_default_fields’, ‘unset_url_field’);

function unset_url_field($fields){

if(isset($fields[‘url’]))

unset($fields[‘url’]);

return $fields;

}

After that, click on “Update File” button.

Removing Website URL from WordPress Comment Form by WordPress Plugin

This method is easier and is recommended to all the users. The plugin that we will use for this method is Comment Link Remove and Other Comment Tools.

Install and activate the plugin on your WordPress website.

Upon activation, you will see “QC CLR Settings” on the left menu of your admin panel. Click on it to proceed to the settings page.

QC CLR Settings

From here check the “Remove WEBSITE Field from Comment Form” option.

Then, click on “Save Changes” to store your settings.

After that, login out from the admin area or open a new incognito browser window to view the comment form below the post.

Comment Form

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.