• How would I replace the “Leave a reply” with the current comment count?

    I’ve tried adding this to functions.php:

    function comment_reform ($arg) {
    $arg['title_reply'] = __(comments_number( 'No responses', 'One response', '% responses' ));
    return $arg;
    }
    add_filter('comment_form_defaults','comment_reform');

    However, this does not work. (If it matters, I’m using the Canvas theme).

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

    (@highlight_creative)

    Instead of replacing it, could you remove the “Leave a reply,” and add the comment count via a hook? (I know the Canvas theme has a bunch.)

    Hi mattmaldre,

    I have tested this code working fine with latest wordpress.

    Please define more information. please add canvas theme url.
    Please see this answer. (Not been able to change the ‘Leave a Reply’ title in the comments form for Canvas 4.2.0.)

    But provided a filter function for woo themes try.
    comment_form_defaults to woo_comment_form_args

    More hook Functions hear for wootheme.

    Thanks,
    Ravi patel

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

The topic ‘Replace "Leave a reply" with comment count’ is closed to new replies.