• Hi,
    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 https://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
    Thanks
    Claudio

Viewing 4 replies - 1 through 4 (of 4 total)
  • .

    (@techievous)

    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;
    }
    add_filter('comment_form_defaults','comment_reform');

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

    Thread Starter clax84

    (@clax84)

    It worked!
    Thank you Techievous!

    .

    (@techievous)

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

    THANKS A LOT!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[spun] changing text "leave a reply" in comment box’ is closed to new replies.