change comment form labels twenty eleven
-
In the theme twenty eleven, I would like to change the comment form title label, field labels, and, completely eliminate the website field.
I’m using a twenty eleven child theme, and know to do the changes in comment.php, I just need to know how to write the code.
Here is the code I found that will change everything except the comment form title:
<?php $comment_args = array( 'fields' => apply_filters( 'comment_form_default_fields', array( 'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Your 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><!-- #form-section-author .form-section -->', 'email' => '<p class="comment-form-email">' . '<label for="email">' . __( 'Your 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><!-- #form-section-email .form-section -->', 'url' => '' ) ), 'comment_field' => '<p class="comment-form-comment">' . '<label for="comment">' . __( 'Let us know what you have to say:' ) . '</label>' . '<textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea>' . '</p><!-- #form-section-comment .form-section -->', 'comment_notes_after' => '', ); comment_form($comment_args); ?>
and here is the code I found to change the form title label from “Leave A Reply”:
<?php comment_form(array(‘title_reply’=>’Please Post Your Comments & Reviews’)); ?>
I just need to know how to add the two together.
Thanks,
Jeff
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘change comment form labels twenty eleven’ is closed to new replies.