There are situations where the “Website” (or URL) field is not needed in the comment form. In such cases, remove the field by adding the following code to your functions.php file:
/**
* Remove the URL field
*
* @param array $fields
*
* @return array
*/
function sv_comment_form_default_fields( $fields ) {
if ( isset( $fields['url'] ) ) {
unset( $fields['url'] );
}
return $fields;
}
add_filter( 'comment_form_default_fields', 'sv_comment_form_default_fields' );If you use a child theme, add this code to your child theme’s functions.php file.