I followed the instructions in this site but there's no such code inside the comment.php
. I'm using Starkers theme but there's nothing inside which seems to control the website field.
Is it in a nw position now in Wordpress 3.0?
Where is it?
The comment form is controlled by the comment_form()
function. You have 2 options if you want to change it's output:
$fields
argument when you call it to remove the comment_author_url
.functions.php
.Fields argument
$your_fields = array(
'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) . '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' /></p>',
'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>',
);
comment_form(array('fields' => $your_fields));
Filter
function your_comment_form_fields($the_form_fields){
// code to remove the author field from $the_form_fields
return $the_form_fields;
}
add_filter('comment_form_default_fields', 'your_comment_form_fields');