Home Forums Free Themes Education Hub Change "Leave a Reply"

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #71379
    wnplsocial
    Participant

    Hi, I want to change the text that appears at the bottom of single post pages above the comment box, “Leave a Reply” (I want to make it “Leave a Comment”). How do I do this?

    #71390
    wensolutions
    Keymaster

    Hello @wnplsocial,

    First of all thank you very much for using the free version.

    You can change the text “Leave a Reply” to some other text by using the custom code.

    For this activate the child theme. After activating the child theme in your child theme functions.php paste below given code.

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

    Hope this helps.

    Best Regards!!

    #71411
    wnplsocial
    Participant

    Hi, thank you for your quick response and for the code. But when I add the code to my functions.php file, I get the following error message:

    Your PHP code changes were rolled back due to an error on line 310 of file wp-content/themes/education-hub-pro-child/functions.php. Please fix and try saving again.

    syntax error, unexpected ‘&’, expecting ‘]’

    Please advise. Thanks for your help!

    #71444
    wensolutions
    Keymaster

    Hello @wnplsocial,

    The code has been provided to your by checking it locally on our set up and we did not find any issue.

    Also, the code that we provided dont have ‘&’ and ‘]’. So the issue is may be due to the error in other codes that you have added so, please provide the total code inside your child theme functions.php to inspect further.

    You can provide the code by creating the public gist.

    Thank you.

    Best Regards!!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.