[Resolved] Change "Leave a comment" text?

Home Forums Support Change "Leave a comment" text?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #883313
    Henry

    Does anyone know if it is possible to change the generic “Leave a comment” text before the comments? I tried this function but no joy:

    //change text to leave a reply on comment form
    function isa_comment_reform ($arg) {
    $arg['title_reply'] = __('Leave a Comment:');
    return $arg;
    }
    add_filter('comment_form_defaults','isa_comment_reform');
    GeneratePress 2.2.2
    GP Premium 1.8.1
    #883319
    David
    Staff
    Customer Support
    #883691
    Henry

    Thanks that’s perfect.

    #883756
    David
    Staff
    Customer Support
    #1395619
    Justin

    Anything more specific that is step by step? I simply want to change the output text of “Leave a comment” to “Leave Your Review”.

    #1395671
    Justin

    Solved it by hopping around a bit. The answer for any newbie that needs help is to simply download the “Code Snippets” plugin and activate it.

    Next step is to go to the section to add a new snippet in that plugin, and paste the following code:

    add_filter( ‘generate_leave_comment’,’tu_custom_leave_comment’ );
    function tu_custom_leave_comment() {
    return ‘PUT WHAT YOU WANT HERE’;
    }

    In the section where it says “PUT WHAT YOU WANT HERE”, you can change that to whatever text you want and it will replace “Leave a Comment” with your new text.

    #1395697
    Leo
    Staff
    Customer Support

    Glad you’ve figured out 🙂

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.