• Resolved kumquat_s

    (@kumquat_s)


    I’m sure this is the most basic question ever so I look forward to someone helping me.

    In short I want to edit the twenty ten theme to instead of saying

    “2 Responses to Hello world!” at the top of the comments section to simply say

    “Comments (2)”.

    Can anyone show me how to correctly edit this code to get this to appear:

    <?php if ( have_comments() ) : ?>
    <h3 id=”comments-title”><?php
    printf( _n( ‘One Response to %2$s’, ‘%1$s Responses to %2$s’, get_comments_number(), ‘twentyten’ ),
    number_format_i18n( get_comments_number() ), ‘‘ . get_the_title() . ‘‘ );
    ?></h3>

Viewing 2 replies - 1 through 2 (of 2 total)
  • this might work:

    <?php if ( have_comments() ) : ?>
    <h3 id="comments-title"><?php
    printf( _n( 'Comments (1)', 'Comments (%1$s)', get_comments_number(), 'twentyten' ),
    number_format_i18n( get_comments_number() ) );
    ?></h3>
    Thread Starter kumquat_s

    (@kumquat_s)

    Looks good to me. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Changing comments header’ is closed to new replies.