• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Vivid Visuals

WordPress web design Birmingham

  • Home
  • Services
    • Digital Media
    • Branding & Print
    • Video and editing services
  • Design Process
  • Portfolio
  • Knowledge Corner
  • Contact

Removing the URL field from the WordPress comments form

WordPress started as just a blogging platform in 2003 and is now used as a content management system to host millions of websites around the world.

By default WordPress allows the user to leave a web address when they post a comment. It’s this web address many spammers use to create inbound links to their websites.

By adding a few lines of code this can be prevented.

  1. Login to the WordPress dashboard
  2. Choose appearance > Editor
  3. Open functions.php and paste the code below at the end of the file.
function remove_comment_fields($fields) {
unset($fields['url']);
return $fields;
}
add_filter('comment_form_default_fields','remove_comment_fields');

Now the Url field won’t be displayed (see below)

Wordpress comments form with URL field removed
WordPress comments form with URL field removed

WordPress links

Google’s mobile friendly algorithm rewards responsive sites
How social media can benefit small business
Why WordPress makes for a great content management system
How to password protect your WordPress site
How to disable comments on your WordPress site
How to add comments to your WordPress posts
Removing the URL field from the WordPress comments form
How to Import a Microsoft Word Document into WordPress

Reader Interactions

Comments

  1. Web design company Chicago says

    July 16, 2013 at 3:02 am

    Amazing blog! Is your theme custom made or did you download it
    from somewhere? A design like yours with a few simple
    tweeks would really make my blog shine. Please let me know where you got your design.

    • Chris says

      July 16, 2013 at 8:53 am

      The name of the theme is Trim and it’s from a company called Elegant Themes. They charge a yearly fee for the themes but if your a small company developing multiple sites its a great resource.

  2. Mikrodermabrazja Kraków says

    August 31, 2013 at 10:48 pm

    Oh it’s really easy:) I was thinking that i need a plugin to do that. Thank’s!

    • Chris says

      March 10, 2014 at 1:01 pm

      Thanks Mikrodermabrazja. I’m glad to help.

  3. Bedroom Decorating Ideas says

    August 2, 2015 at 1:18 am

    Hi there would you mind letting me know which
    hosting company you’re utilizing? I’ve loaded your blog in 3
    completely different web browsers and I must say this
    blog loads a lot faster then most. Can you recommend a
    good internet hosting provider at a honest price?
    Many thanks, I appreciate it!

  4. Chris says

    August 2, 2015 at 9:15 am

    It’s always good to use a fast hosting provider and one local to your country. My site is hosted with CWCS managed hosting over in England. They are not cheap but they do provide a great service. If you require a quick fix perhaps try using a caching plugin like W3 Total Cache. Let me know how you get on?

Primary Sidebar

Search

News

  • So you have a great looking WordPress site, what next?
  • Simple changes could make all the SEO difference
  • Google’s mobile-friendly algorithm rewards responsive sites
  • How social media can benefit small business
  • Enhance Your Project: Audioslug’s Stock Audio Samples Await
  • How to produce a low cost movie/video
  • The secret to producing a successful marketing video
  • How to choose the right music for your next video project
  • Poster design collection
  • Crowd Funding movie for New Outlook – My Guide project

© 2025 Vivid Visuals Limited

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.AcceptCookie Policy