Learn how to delete the website URL field from the WordPress comment form
Learn how to delete the website URL field from the WordPress comment form – Many blogs have a serious issue with spam comments. The main reason people leave spam comments is to get backlinks by using the website URL box in the WordPress comment form.
The majority of spam is created by robots, which makes it easy to get rid of using free plugins and solutions.
The discouragement of manually-submitted spam comments by people is the more difficult component. Users post these unwanted comments, which are often off-topic or irrelevant and don’t add anything to the conversation.
This post will demonstrate how to get rid of the WordPress comment form’s website URL box. Also, we’ll talk about how getting rid of the URL box from the comment form will help cut down on spam.
Why Do Individuals Post SPAM Comments?
Search engine optimization, or SEO, is the quick response to that query. Let’s examine it in more depth.
Have you ever had visitors leave comments on your website with titles like “Best WordPress Themes,” “Make Money Online,” or “MyBlogName”? Why don’t they use their own names instead of these keywords?
The name, email, website URL, and comment box are the four fields that make up the WordPress comment form by default.
When WordPress shows the comments, it automatically links the commenter’s name to the website address they gave when they logged in.
They think that by using this strategy, they would be able to rank higher for certain keywords in search engines.
Due to this, we completely eliminated the URL box from our WordPress comment form. This has significantly decreased the number of spam comments on our website.
Authentic individuals will comment on your posts whether or not you get backlinks. You should really doubt someone’s original motivation if they refuse to leave a comment on your website because they won’t get a backlink.
Let’s now look at how to quickly delete the website field from the WordPress comment form. You can select the approach that best meets your needs from the two we will discuss.
Disable the WordPress Comment Form’s Website Field (Plugin)
Every user is advised to utilize this strategy since it is simpler.
Get the Comment Link Remove and Comment Tools plugins first, then enable them.
QC CLR Settings will appear as a new menu item in the WordPress admin panel’s left sidebar after it has been activated. You can access the settings page for the plugin by clicking on it.
Here, you must choose the option to “Remove WEBSITE Field from Comment Form” by checking the box next to it.
To save your settings, you must scroll to the bottom of the page and click the Save Changes button.
When browsing a post on your website, you won’t see the whole comment form since you are already signed in.
Either log out of the WordPress administration area or use a fresh incognito browser tab. Following that, you may browse any post on your WordPress website and not see the website URL box in the comment form.
If the website option is taken away, users who only want to comment on your website to get a link will be less likely to do so.
The author names and website URLs will still be connected in the comments that have already been accepted.
You must return to this plugin’s settings page and tick the box next to the “Remove links from comment author bio” option to get rid of them.
The links from the earlier comments will also be deleted when you make the modifications.
Taking the Website URL Field Out of the WordPress Comment with custom code
Some people prefer to learn how to do tasks without the aid of a plugin. The good news is that a little piece of code will allow you to remove the website field from the comment form.
You must create a complete backup of your WordPress site before you can proceed. If you make any mistakes when modifying the theme files, you may use this to restore your website’s files.
The next step is to copy and paste the following code into a site-specific plugin or your theme’s functions.php file:
1
2
3
4
5
6
|
add_filter( 'comment_form_default_fields' , 'unset_url_field' ); function unset_url_field( $fields ){ if (isset( $fields [ 'url' ])) unset( $fields [ 'url' ]); return $fields ; } |
The website field on your WordPress comment form is simply removed by this code. To see it in action, open a new incognito browser and go to a blog post on your website.
We really hope that this post has shown you how to get rid of the WordPress comment form’s website URL field. You may wish to take advantage of Learn How to Add Wholesale Pricing to WooCommerce