• Rachel

    (@xxrayray)


    I’m trying to change “leave a reply” to “Share a Comment”. I saw on multiple websites to go into comments.php and put in this code:

    <?php comment_form(array('title_reply'=>'Share a Comment')); ?>

    It’s not working. I also tried editing comment-template.php but I was told not to change core file themes.

    What else can I do?

    Website: https://jennifersweete.com/

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Michael

    (@alchymyth)

    where exactly do you want to change teh wording.

    your used code is only for replies to other comments, i.e. when you are in a single post’s comment section.
    for example, when you look at https://jennifersweete.com/virtual-you/#comments below the two comments just above the comment form, the changed text is already there.

    if you want to change the ‘leave a reply’ text in the posts index page, you need to edit this line in content.php (and possibly in some of the other content-{???}.php files):

    <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>

    Thread Starter Rachel

    (@xxrayray)

    Thank you! It worked.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘“Leave a Reply” comment text not changing’ is closed to new replies.