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

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

See also  What is reseller web hosting ?
  • You must be logged in to reply to this topic.