- This topic has 3 replies, 2 voices, and was last updated 6 years, 6 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Home › Forums › Free Themes › Education Hub › Change "Leave a Reply"
Tagged: Comments, Leave a Reply
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!!
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!
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!!
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |