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;
}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.