How to Remove Website (URL) Field from WordPress Comment form :
As earlier we discussed,remove website field from WordPress comments to avoid spam comments.Some WordPress plugins there to do same work.But try to avoid using plugins unless you don't find any WordPress code snippets.
Pate the below listed code in your WordPress theme's functions.php file to remove url field from WordPress comment form.
Go to Appearances >Editor >Functions.php file.
Here's the code to remove website field from WordPress comments.
function remove_comment_fields($fields) {
unset($fields['url']);
return $fields;
}
add_filter('comment_form_default_fields','remove_comment_fields');
See the result of WordPress comment form after adding this code.
Also see :
1.WordPress tutorial and code snippet for Beginners.
2.Genesis code snippets and useful tutorials to customize your child theme
Need Help :
Hope that, WordPress tutorial helped you learning how to remove website field from WordPress comment form .If you are facing any problem,then share your query in below comment box we will reply as early as possible.