How to Remove URL / Website Field from WordPress Comment Form

WordPress website field in comment form is a way to submit url to others website to gain backlinks and traffic. But Today’s many spammers are using it to drop shady links, and many bloggers approve their comments. Sites related to entertainment, recipes, health etc types website receive multiples of spammy links daily. You can also use anti spam wordpress plugin to protect your site from spam.

But you can also try to remove website field in wordpress comment form, So chances are you will not receive spam comments.

After removing website field from comment box in wordpress, users can only enter name, email and a message. So if you think to remove website field from comment section then follow the guide.

- Advertisement -

Remove Website Field From WordPress Comment Section: Step by Step Guide

Follow Step by Step Guide to remove Website Field from WordPress Comment Form.

  • First Login to your wordpress dashboard.
  • Go to Appearance>Editor https://yoursite.com/wp-admin/theme-editor.php
  • Find Theme Functions File (functions.php) and Open.
  • Add Following Code at the end of the file. Just Above ?>
add_filter('comment_form_default_fields', 'url_filtered');
function url_filtered($fields)
{
  if(isset($fields['url']))
   unset($fields['url']);
  return $fields;
}
  • Save File, and you are done.

Now Open your blog post and see your blog URL Field in comment form magically removed.

(Aside: if the changes don’t appear right away, make sure you’re not running a caching plugin, and if you are, be sure to flush the cache!)

Hope You like this easy trick to remove URL field from WordPress Comment Form.

Tags: WordPress Spam Comment Blocker, Anti Spam Plugin, WordPress Customize Comment Form, WordPress Edit Comment Form

Related articles

20+ Essential WordPress Plugins for Bloggers (Updated List)

WordPress is a very popular blogging platform because of...

How to Allow Contributor to Upload Images in WordPress Without Using Plugin

Hello guys, If you created the "contributor" user role...

10 Best Magazine WordPress Themes for Your Blog & News Site

If you are looking for a fantastic theme for...

Easy Ways to Fix & Increase Maximum Execution Time in WordPress

Today, I'm working on new site and installed new...

6 Best WordPress Affiliate Link Cloaking Plugins

Affiliate marketing is the best way to make money from...
Abhay Pratap Singh
Abhay Pratap Singhhttps://www.itechcube.com
Abhay Pratap Singh is Digital Entrepreneur, Who is Making Money From the Internet since 2012. He Also Works as a Freelancer and Does Web and Mobile app Development. Apart from That, He Invests in Stock Market and Crypto Currencies. Here in iTechCube, Writes about Blogging, WordPress Guides, and Tutorials to help begginers.

2 COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here