• Dingo

    (@dingo)


    I would like to change Leave a Reply to Leave a Comment.
    Which file do I alter?
    Should I be looking in functions.php – but I cannot find anything to change there.

    The Simone theme is just what I’ve been searching for.

    Regards from Australia

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hey there Dingo,

    How are you doing today?

    This should be possible to change by using theme translation files, if the theme that you’re using doesn’t have one or you’re having issues changing this you can try using this plugin as an alternative https://www.ads-software.com/plugins/real-time-find-and-replace/.

    It allows you to replace any text with the text of your choice.

    Hope this helps ??

    Cheers,
    Bojan

    Thread Starter Dingo

    (@dingo)

    Many thanks Bojan.

    I finally located the text at line 2264 of the comment-template.php file in the wp-includes folder.

    It was within the defaults array:

    $defaults = array(

    then go down to:

    ‘title_reply’ => __( ‘Leave a Comment’ ),

    The default had been ‘Leave a Reply’ So now I’m happy.

    I hope this helps someone else.

    I love the Simone theme, but have much to learn about its hidden power.

    Cheers from Australia

    Hey Dingo,

    Glad you managed to figure that one out. However, I wouldn’t recommend editing WordPress core files.

    You can achieve the same effect with the plugin I mentioned above.

    Also first time you update WordPress this change will be lost.

    Hope this helps ??

    Cheers,
    Bojan

    Thread Starter Dingo

    (@dingo)

    Hey Bojan

    Thanks for your wise advice. I’m aware that editing core files is a serious crime; however, it taught me a lot – and I promise not to do it again.

    Cheers,
    Dingo

    Glad I could help ??

    Cheers,
    Bojan

    mrtom414

    (@mrtom414)

    @bojan It not a serious crime but your changes are likely to be overwritten when WordPress updates.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Changing Leave a Reply to Leave a Comment’ is closed to new replies.