• Can someone tell me where I can change the “leave a reply” to something else? I cannot find it in the comments.php for Twenty Twelve. I would also like to change it when it displays the number of comments to something else.

    I do have a child theme and an override of some sort would work as well!!

Viewing 15 replies - 1 through 15 (of 15 total)
  • Go into the single.php in your current theme and look for

    <?php comment_form(); ?>

    Change it to:

    <?php
       $defaults = array(
           'title_reply' => 'Write your random text here.',
        );
    
        comment_form($defaults);
    ?>
    Thread Starter intheknowmom

    (@intheknowmom)

    That does not appear in the Twenty Twelve theme.

    Look for the comments.php in the Twenty Twelve folder – Go to line 58 – and there is the <?php comment_form();?>

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    In Twenty Twelve, you’ll find the comment_form() call in the comments.php file, near the end of the file. You can change it to this:

    comment_form(array(
       'title_reply' => 'Leave a Reply',
       'title_reply_to' => 'Leave a Reply to %s',
    ));

    The %s will be replaced by the username you’re replying to in non-Javascript situations.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Since you’re using a child theme, copy the comments.php file to the child theme, and then make the changes there.

    Thread Starter intheknowmom

    (@intheknowmom)

    What about changing the number of comments to something else? Instead of “11 replies” just have “replies” … where can I find that?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    At the top of the comments.php file, you’ll find this:

    <h2 class="comments-title">
    	<?php
    		printf( _n( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'twentytwelve' ),
    			number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
    	?>
    </h2>

    That is where it prints the “One thought” or “10 thoughts” message for the comments. Change it as you like in your child copy.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    If you’re talking about the “1 reply” or “XX Replies” link at the bottom of each post, on the other hand, then that is in the content.php file, as well as all the other content-whatever.php files, for each type of Post Format.

    Please help. I’ve tried every suggestion, including the ones above, for changing the text of “Leave a reply” in Twenty Twelve and none of them work. In most of the posts, the code they talk about is not even in the functions.php or the comments.php of the theme. And even when it is, making the changes people have suggested does nothing to change the “Leave a reply” text.
    How to?

    Line 28 of content.php

    <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' )

    Change to:

    ‘<?php comments_popup_link( ‘<span class=”leave-reply”>’ . __( ‘YOUR MESSAGE, ‘twentytwelve’ )’

    worked for me on WordPress 3.5.1

    I’ve been trying to change “Leave a Reply” to “Make a comment”, and despite trying several recommendations, including the one of jasonyohon’s above, have not managed to do it.

    Has Twenty Twelve changed with one of the updates, perhaps (I’m running latest version, with a child theme)?

    Anyway, if anyone could indicate how to make this simple wording change to the Comments form, would be appreciated.

    Cheers
    Ross

    Samuel Wood’s instructions work (Thanks, Samuel!) — maybe he wasn’t specific enough for you. When I was bit greener I was sometimes thrown off when instructions didn’t include the complete php syntax.

    Change this:
    <?php comment_form(); ?>

    to this:

    <?php
    comment_form(array(
       'title_reply' => 'Your edited text goes here,
       'title_reply_to' => 'Change this text for the nested comment reply %s',
    ));
    ?>

    I’ve tried making the above changes to my comments.php file (my site uses twenty twelve theme) and even after refreshing, I don’t see a change. Please, I’d really appreciate a hand – perhaps it’s as easy as waiting a few hours for the server to refresh?

    Just to be clear: I’d like to change “Leave a reply” to “Please click here to add a comment” and my website is: https://www.kimshupenia.com/

    @cafecomm: As per the Forum Welcome, please post your own topic. Posting in an existing topic prevents us from being able to track issues by topic. Added to which, this topic is 8 months old an references an older version of both WordPress & the theme.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘(Twenty Twelve) change "leave a reply"’ is closed to new replies.