Remove the Website URL Field from WordPress comment box


Remove the Website URL Field from WordPress comment box

A Simple Guide to Remove the Website URL Field from WordPress comment box.

2 reasons why we Remove the website URL Field From WordPress Comment Form

  • Due to Bad Spam Links.
  • Some Spam Links will Affect our Blog SEO.

Here is the Solution for Remove the website URL Field from WordPress comment box.

Step 1

  • Add this Below code on your Theme’s Functions.php File.

Remove the Website URL Field from WordPress comment box

add_filter('comment_form_default_fields', 'clear_url_box');
function clear_url_box($fields){
if(isset($fields['url']))
unset($fields['url']);
return $fields;
}
  • If you are Facing Any issue in Above code Means Please Try this Below PHP Code.

 

function allwebtuts_disable_comment_url($fields) { 
unset($fields['url']);
return $fields;
}
add_filter('comment_form_default_fields','allwebtuts_disable_comment_url');

  • That’s all successfully we Hide the remove the website URL Field from WordPress comment form.

Step 2

Are your Non-technical guy or not Familiar in WordPress & PHP Here is the Site Specific WordPress Plugin For you.

  • Just Download this Plugin & Activate it

Download Now

Demo Image

Remove the Website URL Field from WordPress comment box

if you Need Any technical Help from us feel free to Comment Here we will Help you.

How to Guide

 


Was this article helpful?
Thanks!

Your feedback helps us improve Allwebtuts.com



25 Shares
+12
Tweet
Share22
Pin1
Stumble