testdevs

How to Remove URL Text Field on WordPress Default Comment Box?


This is one of the common question for every blogger which is using the WordPress CMS platform for blogging, and by default it has 4 field in comment section below each post (Name, Email, Website, and Comment).

Now as we all know that not all users or visitors got a personal website so some blogger asking "How to Remove the Website Text Field on WordPress".

Just copy the code below;

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

and add this code to your functions.php, go to your WordPress backend area, and click Themes>Editor and look for the function.php and paste the code then that's it.

Post a Comment

Previous Post Next Post

We permanently move to KAZUKIYAN.com Visit Us

X