How can I change the text?

Viewing 4 posts - 1 through 4 (of 4 total)
  • #2130
    max
    Participant

    Where can I change the text around new comment field:
    “Leave a reply”, “You are logged in like…”, “Log out?”, etc.
    Thanks!

    #2131
    Daniel Tara
    Keymaster

    In comments.php the labels for all fields are defined in an array called [code]$fields[/code]

    #2132
    max
    Participant

    I 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) ?>

    #2133
    Daniel Tara
    Keymaster

    This 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: 

You must be logged in to reply to this topic.