DWQA QuestionsHow to Disable url in Comments field in WordPress blogs?
DJ Anup asked 6 months ago

Hi, I want to hide or disable my website URL box in comments, how to achieve that?

I want to disable the below url field, look this-

Share this
1 Answers
praankumar Staff answered 6 months ago

There are two options for that-

  1. By WordPress Comment Disable plugin or remove comment URL plugin
  2. By editing theme function. Go to Appearance->Editor->Theme Functions(functions.php) and place below code at the last line


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

Now you can see as below

 

Disable comment in URL

 

Your Answer

10 + 4 =