How can I remove Email and Website fields in "Leave a Reply" form in WordPress?
Like this : [URL removed - malware link]
I only want to see Name (leave blank for Anonymous)
and the comment field.
I'm using WordPress 3.2.1 and using the default WordPress comments.
public_html/wp-includes/comment.php
and
public_html/wp-includes/comment-template.php
I've removed this code from comment-template.php:
'email' => '<p class="comment-form-email"><label for="email">' . __( 'Email' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) .
'<input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' /></p>',
'url' => '<p class="comment-form-url"><label for="url">' . __( 'Website' ) . '</label>' .
'<input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" /></p>',
But this is not working. I think removing only this code is not enough!
Now what do I do?