Tagged: 

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

    Hello!

    This has been on my list for a while and I thought I would get to it now. I would like to change the comments default intro text from “Leave a reply” to “Leave a comment.” How can I do this? I see various options over the years for customizing this, including making the change in comments.php (I think I found the relevant lines, below) but that is only in the theme file, not child theme, so I am concerned the change will be overwritten next time the theme is updated.

    Thanks,
    Rob

    if(comments_open()){

    echo “<div class=’comment_container’>”;
    echo “<h3 class=’miniheading’>”.__(‘Leave a Reply’,’avia_framework’).”</h3>”;
    echo “<span class=’minitext’>”.__(‘Want to join the discussion?’,’avia_framework’).” <br/>”.__(‘Feel free to contribute!’,’avia_framework’).”</span>”;
    comment_form();
    echo “</div>”;

    #926322

    Hey Rob!

    Please copy comments.php file to your child theme and change the text as needed :)

    Best regards,
    Yigit

    #926331

    Hi Yigit!

    Thanks for responding so fast! I was thinking that might be a way to do it, but with all the changes being made to Enfold, is there a possibility copying that to the child theme could mess up something with a future update? Any downsides to copying it there?

    Thanks!
    Rob

    #926341

    Hi Rob,

    That could be the case if we update comments.php file in parent theme however then you can simply copy comments.php file from theme once again and apply the same changes :)

    Best regards,
    Yigit

    #926353

    Hi Yigit,

    Thanks much. Sorry to keep asking questions on this …. but how would I know if comments.php has changed? I just don’t want to end up in a situation where I copy this over and then update and that crashes the site in the future.

    Thanks!
    Rob

    #926604

    Hi Rob,

    I think Comments.php file will not be changed any time soon but if we make any changes on it, we will include it in change log :)

    Best regards,
    Yigit

    #926695

    Haha OK thanks, feel free to close ticket!

    Best
    Rob

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

The topic ‘Change "Leave a Reply" text in comments box’ is closed to new replies.