Get 10% Discount On GeneratePress Premium Theme Avail Now

Remove URL Field From Comment Form In GeneratePress 2020

Let’s remove URL Field from comment form in GeneratePress theme to remove any spamming attacts to your site.It will enhance your SEO scores and improve your site’s DA & PA.

I will discuss two simple ways to remove URL field from WordPress comment form in GeneratePress theme.

  • Remove URL field from comment form using Code Snippet Plugin.
  • Remove URL field from comment form by adding simple CSS.
Remove URL field from Comment form
  • Save

Let’s remove website field from comment form in GeneratePress Theme.

Also Read : GeneratePress Review – The fastest Lightweight theme ever

Importance To Remove URL field From Comment Form

Whenever you launch a new site and write SEO friendly content on your site, spammers start attacking your site by injecting dirty and meaningless URLs to your site through commenting.

And you have to remove theme on daily basis.Because these spammers use computer language to do the job automatically which annoys every blogger.

So to avoid this problem you can use these methods to improve your site’s score.

Methods To remove URL field From Comment Form

Methods to remove URL field
  • Save

There are different methods to remove URL field from comment form in generatePress theme.

But I will use two methods and these are much simpler than others.

The first method is to use a free WordPress plugin to add some code and get rid of website URL from your GenetatePress theme.

And second method is quiet simpler.In GeneratePress premium theme you can use additional CSS to remove URL field from comment box of your site.

Remove URL Field Using Code Snippet Plugin

Remove URL Field
  • Save

This is one of the best plugin to do multiple task without affecting your website theme’s setting.

And through this plugin we will use a code in functions.php

Follow the simple and easy step to remove URL field from comment form in generatePress theme.

  1. Go to your WordPress login area.
  2. Go to plugins > Add New
  3. Search for Code Snippets >Install > Activate.
  4. Now go to Snippets >Add New
  5. Give a relevant Title
  6. And Copy & Paste the below code
  7. Finally Hit Publish Button.
add_action( 'after_setup_theme', 'tu_add_comment_url_filter' ); function tu_add_comment_url_filter() { add_filter( 'comment_form_default_fields', 'tu_disable_comment_url', 20 ); } function tu_disable_comment_url($fields) { unset($fields['url']); return $fields; }

Remove Website URL From Comment Box Using CSS

Additional CSS
  • Save

There is another very simple method to remove URL field from comment form in GeneratePress.

Steps to remove website URL using CSS :

Copy paste code in additional CSS
  • Save
  • Go to Appearance > Customise > Additional CSS
  • Copy & paste the following code and hit Publish
.comment-form #url{ display:none; }

Result :

  • Save

Conclusion On How To Remove URL Field

So i hope you have learnt this trick to remove URL field from comment form in GeneratePress theme.

It will help you to prevent your site from unwanted spamming bots who leave Spammy comments on your site.

In this way you will not pass out a free link juice to these malicious sites.It will definitely increase your site SEO score by search engine like Google.

If you know another method, do share in the comment section.

Thanks for your valuable time here.

Remove URL field from Comment form
  • Save

I am Kuldeep Singh a teacher by profession and blogger by great passion. You can learn here blogging related tips and tricks.

Leave a Comment

Share via
Copy link