Where can I find "Leave a reply" in the theme files to change the wording?

  • brentwz

    #1722

    At the end of each post it says, “Leave a reply”. I want to change it to say “Leave a comment” instead.

    Please tell me which theme file this text is in, so I can edit it, thanks.

    PS Syahir, we still love your Graphene theme so much.

    Mod

    Kenneth John Odle

    #16987

    You don’t want to edit theme files. Use a child theme instead to make changes. See this page in the Graphene wiki: http://wiki.khairul-syahir.com/graphene-theme/wiki/Customisation_using_a_child_theme

    Once you’ve done that, try adding this to your child theme’s functions.php file:

    function comment_reform ($arg) {
    $arg['title_reply'] = __('Leave a comment:');
    return $arg;
    }
    add_filter('comment_form_defaults','comment_reform');

    Works a treat. See the end of this post. Your clients may not want you to be this cheeky, though.

    Ken

    brentwz

    #16988

    Yes, Ken, Syahir customised Graphene for a couple of our websites using child themes, so I thought I’d better use a child theme to do it. 😉

    And I’ll follow your directions above to make the changes. Many thanks for your prompt, clear reply. Have a good one, mate!

    brentwz

    #16989

    POSTSCRIPT:

    Ken, You’re right. It works a treat. Easy-peasy, from your directions, for a non-code-junkie person like me to follow. Ta.

    And I like YOUR version of same! Great website blog too.

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

You must be logged in to reply to this topic.

Do NOT follow this link or you will be banned from the site!