Change comments title from "Leave a reply"

  • Author
    Posts
  • #12268

    Jim King

    Hi

    Is it possible to easily change the comments window title from “Leave a reply” to ” Please leave a comment” ?

    Thanks

    Jim…

    #12379

    zed
    Keymaster

    Create a child theme and add this to it’s functions.php file:

    function comment_reform ($arg) {
    $arg['title_reply'] = __('Please leave a comment');
    return $arg;
    }
    add_filter('comment_form_defaults','comment_reform');


    If you like our creations, please rate them on WordPress.org.
    #12395

    Jim King

    Hi Zed

    I think I found a fix for this by modifying the wp-includes>comments-template.php file. (I renamed and saved the existing file) then I edited the file and did a find “Leave a reply” and replaced with “Please leave a comment” (4 instances) and re-saved. This seemed to work for now, but I assume a WordPress update may overwrite this in the future? Is that the reason behind suggesting doing it as a child theme?

    Thanks

    Jim..

    #12402

    Zach H.

    Zed,

    that didn’t work for me. I’ve tried it with parabola-child/functions.php and parabola-child/includes/theme-functions.php

    It still shows “leave a reply”.

    #12448

    Jim

    Thanks Zed,

    I added your recommended code as suggested and it worked fine for me.

    Zach, did you add the code at the end between the <?php and the ?> to the functions.php file?

    Cheers

    Jim…

    #12858

    Gary

    How would I go about removing the Leave a reply box from all pages?

    #12859

    Jim

    Hi Gary

    Go to Pages in the dashboard, choose All Pages and under each go to “quick edit” and uncheck “Allow comments”
    That should do it.

    Jim…

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Change comments title from "Leave a reply"’ is closed to new replies.