Home › Forums › Support › How to change Leave a comment text? This topic has 3 replies, 4 voices, and was last updated 5 years, 4 months ago by Leo. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts August 17, 2020 at 12:38 pm #1406752 Rishabh This is the page I am referring to: https://www.clichemillennials.com/blog/ I tried putting this code in my functions.php file: https://docs.generatepress.com/article/generate_leave_comment/ But still, it shows “Leave a comment”. In addition to this, I also have this code pasted in my functions.php: https://docs.generatepress.com/article/entry-meta-style/ (Example 1). Thanks August 17, 2020 at 1:53 pm #1406855 TomLead Developer Lead Developer Hi there, Try this: add_filter( 'gettext', function( $text ) { if ( 'Leave a comment' === $text ) { return 'Your new text'; } return $text; } ); December 11, 2020 at 6:06 am #1575959 Bharat add_filter( ‘gettext’, function( $text ) { if ( ‘Leave a comment’ === $text ) { return ‘Your new text’; } return $text; } ); This code is not working for me. Please help me. December 11, 2020 at 9:28 am #1576394 LeoStaff Customer Support Try this instead: https://docs.generatepress.com/article/generate_leave_comment/ Adding PHP: https://docs.generatepress.com/article/adding-php/ Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In