Viewing 4 posts - 1 through 4 (of 4 total)
-
Daniel TaraKeymaster
In comments.php the labels for all fields are defined in an array called [code]$fields[/code]
maxParticipantI found nothing. This is there:
$defaults = array(
‘fields’ => apply_filters( ‘comment_form_default_fields’, $fields ),
‘comment_field’ => ‘<p class=”comment-form-comment”><textarea id=”comment” name=”comment” cols=”45″ rows=”10″ aria-required=”true”></textarea></p>’,
‘comment_notes_before’ => ”
);
?><?php if ( function_exists( ‘comment_form’ ) ) comment_form($defaults) ?>
Daniel TaraKeymasterThis is the portion you’re interested in:
$fields = array( 'author' => '<p class="comment-form-author">' . '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . ' />' . '<label for="author">' . __( 'Name' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) . '</p>', 'email' => '<p class="comment-form-email">' . '<input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . ' />' . '<label for="email">' . __( 'Email' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) . ' (will not be published)</p>', 'url' => '<p class="comment-form-url">' . '<input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" />' . '<label for="url">' . __( 'Website' ) . '</label>' . '</p>', );
Viewing 4 posts - 1 through 4 (of 4 total)
Tagged: comments
You must be logged in to reply to this topic.