Rajesh Kumar Duraisamy
Rajesh Kumar Duraisamy

Reputation: 797

How to remove comments column in wordpress

I am new to wordpress. I choose Twenty Twenty Theme for my use. In that I want to remove email & Website text box.

But I am not sure where I can edit that. Please help me to solve this issue

Attached screen shot of my comments section enter image description here

Upvotes: 0

Views: 159

Answers (2)

Ravi
Ravi

Reputation: 304

Easy solution to stop commenting enter image description here

Upvotes: 0

sleepingpanda
sleepingpanda

Reputation: 56

You can try with this code it is working.

function name_email_remove($fields) {
    if(isset($fields['email']) && isset($fields['author']))
    unset($fields['email']);
    unset($fields['author']);
    return $fields;
}
add_filter('comment_form_default_fields', 'name_email_remove');

If you want to remove the website URL too then use $fields['url'].

Let me know if any questions.

Upvotes: 4

Related Questions