Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How To How to Remove URL / Website Field from WordPress Comment Form
[Image: Remove-URL-Website-Field-from-Word-Press...rm-png.png]
Engagement is extremely important for any website. In order to set up proper engagement, a direct line of communication should be fostered with care. One way for it is comment form.
WordPress comes with a built-in comment system that allows for community interaction around your content. Anyone with a valid Name and Email can leave a comment without verifying their identity.

WordPress comment form comes with three fields (name, email, and website or URL). When displaying the comments, WordPress automatically hyperlinks the name of the commenter with the website URL they provided.
It is true that WordPress websites attract a lot of spammers as most of them know how easy it is to build backlinks off from them. Most bloggers do not know how to control spam and they do not have the time to moderate each comment.
Some blackhat SEO guys misuse it and spam your site. And you may be finding the ways to stop spam on your website. One of the ways includes removing the URL/Website field from comment form is always beneficial.
If you are a constant target of comment link spam and you have very little time to moderate the comments, then removing the website field entirely will seriously discourage the link spammers.
In this guide, I will tell you two easy ways to remove the URL/website field from the WordPress website.
1. Using comment.php:
  • Go to your theme’s 

  • [size=undefined]

  • [size=undefined]Just remove ‘url’ => field from the code.[/size]
[*]Here is the sample code that you have to remove:
$url = '

' .
'' .
'' .


Note: Every theme has different code. So make sure you are removing it accordingly. The above code snippet is from the Genesis framework.
2. Using Function.php:
Add below code to theme’s 



// Remove URL/Website field in Comment form
function infophilic_remove_comment_url($fields) {
return $fields;

The code above creates a function called 


 and removes (or unsets) the URL field.[/size]

Using the Hook 


, we pass the argument to default WordPress function [/size]


 that contain fields of the comment form.[/size]

Hope you find the article helpful
To Purchase Credit Click here , For how to make money on Sologet forum Click here 


There is love in sharing

Messages In This Thread
How to Remove URL / Website Field from WordPress Comment Form - by Kingsolomon - 06-24-2019, 12:13 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  protokollene hans vil sannsynligvis bli redusert chelseymc8 0 16 06-10-2021, 09:52 AM
Last Post: chelseymc8
  billige fotballdrakter bare å ta ordet chelseymc8 0 66 06-02-2021, 07:26 AM
Last Post: chelseymc8
  Chelsea Thomas Tuchel non ha discusso la proroga blonska63 0 44 05-31-2021, 08:36 AM
Last Post: blonska63
  Golden Goose Sale ggdballsales 0 67 05-25-2021, 02:11 PM
Last Post: ggdballsales
  What is an Opt in Dubai email list arifa1 1 433 05-24-2021, 05:34 PM
Last Post: JeanWisozk

Forum Jump:

Users browsing this thread:
1 Guest(s)

How to Remove URL / Website Field from WordPress Comment Form00