How to change leave a reply text WordPress

This article was written by in August 21, 2014, & may not be posted on other sites!
Original source url for this article: How to change leave a reply text WordPress

How to change leave a reply text wordpress?
The comment_form () function is where the comment form is defined. But instead of changing the function itself, there is a much easier way to change the “leave a reply” text in WordPress, and also change the submit button text. This is how to:

How to change leave a reply text WordPress

 

 

Change leave a reply text in WordPress comment form

You should always create a child theme when starting to alter the php files in WordPress. With that said, open the comments.php file or copy this file from your parent theme if you don’t have it in your child theme. Look for the code
<?php comment_form(); ?>

Replace the code with
<?php comment_form( array( 'title_reply' => 'Leave a comment', 'label_submit' => 'Publish' ) ); ?>
Just change the words “Leave a comment” to match your needs.

 

Change submit button text in comment form, WordPress

You should always create a child theme when starting to alter the php files in WordPress. With that said, open the comments.php file or copy this file from your parent theme if you don’t have it in your child theme. Look for the code
<?php comment_form(); ?>

Replace the code with
<?php comment_form( array( 'title_reply' => 'Leave a comment', 'label_submit' => 'Publish' ) ); ?>
Just change the words “Publish” to match your needs.

 

 

Spread the word

Facebooktwittergoogle_pluslinkedinmail

3 thoughts on “How to change leave a reply text WordPress

  1. kindersitz bestenliste

    Hurrah! In the end I got a web site from where I be capable of in fact get valuable data concerning my
    study and knowledge.

Leave a Reply

Your email address will not be published. Required fields are marked *