Menu Close

How to Remove the URL and Email lines in Comment WordPress

Place following code in your functions.php file:

function remove_email_url($fields) {
unset($fields['url']);
unset($fields['email']);
return $fields;
}

add_filter(‘comment_form_default_fields’, ‘remove_email_url’);

———————————————————–

Another way to remove Website and Email lines in comment :

Try adding the following CSS to your Quick CSS (located under the Styling Tab in the theme options) or the custom.css file in the css folder of your theme files:


#respond .comment-form-email, #respond .comment-form-url {
display: none;
}