How To Remove Website URL From WordPress Comment

How To Remove Website URL From WordPress Comment without any plugins. Spam commentary is a big problem for numerous blogs. The biggest reason for spam commentary is the desire to get backlinks using the website URL field in the WordPress comment form.

Because automated bots generate the utmost spam, you can fluently combat comment spam using free tools and plugins.

The hard part is to discourage spam commentary from being transferred manually. These irremovable comments are submitted by factual druggies and are frequently out-content, inapplicable, and inapplicable to the discussion.

How To Remove Website URL From WordPress Comment
How To Remove Website URL From WordPress Comment

This composition will show you how to remove the Website URL field from the WordPress comment form. We will also explain that removing the URL field from the comment form will help you discourage spam.

Why do people submit spam commentary?

The short answer to this question is SEO or hunt machine optimization. Let’s take a look at it in detail.

Have you ever entered commentary on your website from druggies like” Stylish WordPress Themes,” Make Plutocrat Online,” or “MyBlogName”? Why do they use similar keywords rather than their real name?

By dereliction, the WordPress comment form has four fields name, dispatch, website URL, and the comment box.

When displaying commentary, WordPress automatically hyperlinks the commenter’s name to the website URL they handed in.

This backlink provides incitement for black chapeau SEO marketers and new bloggers.

How Remove Website URL From WordPress Comment
How to Remove Website URL From WordPress Comment

They believe this tactic can help them get better rankings for specific keywords in hunt machines.

This fashion doesn’t work for SEO in the utmost cases, but it doesn’t stop spam commentary.

We removed the URL field from our WordPress comment form altogether. Doing so has significantly reduced the number of spam comments on our point.

Real druggies will note on your papers whether they get backlinks or not. However, also you have to question their intentions first If someone does not want to record your website because they can not find the backlink.

That being said, let’s take a look at fluently removing a website field from a WordPress comment form. We’ll cover two styles, and you can choose the one that works stylishly for you.

Manually Remove Website URL From WordPress Comment

Some users want to learn how to work manually rather than using plugins. The good news is that you can remove the website field from the comment form with the help of law particles.

Remove Website URL WordPress Comment
Remove Website URL WordPress Comment

To get started, you must have a complete WordPress site backup. However, it’ll help you restore your website lines If the commodity breaks when you edit these lines.

Next, copy and paste the following code to your theme’s functions.php file.

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

This law fluently removes the website field from your WordPress comment form. You can view a blog post on your website in a new sequestration tab to get it enforced.

Buy Software Downloading Website Service

We hope this composition has helped you learn how to remove a website URL field from a WordPress comment form.

Disable HTML in WordPress Comments

You may also want to check our companion on adding reCAPTCHA to WordPress comments to help spam commentary.

Add a Comment

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