Support » Themes and Templates » Change "submit comment" in Twenty Eleven.

  • How can I change the text “submit comment” on the button in the comment form below my articles? Can’t find it in the comment.php…

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator t-p

    (@t-p)

    try this and see if it works:

    look in your theme’s comments.php file. right at the bottom look for:
    <?php comment_form ?>

    replace with this:

    <?php comment_form(array(label_submit' => "Post comment", 'comment_notes_after' => "")); ?>

    this will over ride the default text with ‘Post comment’ or whatever you like.

    p/s: moderator: I tried to use the code button but it did not work (IE9).

    Thread Starter immaterial

    (@immaterial)

    thanks. however, i just found this:

    <?php comment_form( array('comment_field' => '<p class="comment-form-comment">' . '<textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>') ); ?>

    Do not edit the Twenty Eleven theme. It is the default WordPress theme and having access to an unedited version of the theme is vital when dealing with a range of site issues. First create a child theme for your changes.

    Thread Starter immaterial

    (@immaterial)

    Well, I decided to have a backup of the original Twenty Eleven files on my hard drive… isn’t that the same?

    Well, let me put it another way…
    How would you feel if the only way to get back into your site was to completely wipe out all of your changes and start again with the original Twenty Eleven theme?

    Create a child theme.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Change "submit comment" in Twenty Eleven.’ is closed to new replies.