Ready to get started?Download WordPress


[spun] changing text "leave a reply" in comment box (4 posts)

  1. clax84
    Posted 1 month ago #

    I need to change the default texts in the comment area: the "reply-title" and the other text elements in the comment box.
    The site is http://www.leaderyou.it

    I've searched the support forum, but found nothing recent and useful.
    I've checked the comments.php (where i found this:<?php comment_form( array( 'cancel_reply_link' => __( 'x', 'spun' ) ) ); ?> but I dont't know what to do with it), content.php and style.css (I use a child theme), but without any results.

    I have to say that the language of these texts is localized: I've an italian 3.8.3 version of wordpress and the default text is in italian.

    Hope you can help

  2. Techievous
    Posted 1 month ago #

    I'm not a fan of editing the parent theme's files because we will have to remake those changes every time the theme updates. I'd recommend creating a child theme for these edits.

    Add this to the bottom of your functions.php of your child theme:

    function comment_reform ($arg) {
    $arg['title_reply'] = __('Change this to whatever you want, default is leave a comment');
    return $arg;

    screenshot of the changed Leave a Comment: http://i.imgur.com/FcF3a3S.png

  3. clax84
    Posted 1 month ago #

    It worked!
    Thank you Techievous!

  4. Techievous
    Posted 1 month ago #

    If the issue is solved, could you please mark this as resolved? That would be much appreciated, thanks!


You must log in to post.

About this Theme

About this Topic