How to customise the text for "Leave a reply" section at the end of the post?

Hi

Sorry for so many questions! I am rushing to launch my site!

I would like to customise the text for the “Leave a reply” section.

I found the solution you recommended here: https://colorlibsupport.com/t/leave-a-reply/

Your solution helped to change the “Leave a reply” text! However, the submit box text is still “Post reply”. Can I change the submit box text to “Post comment” to be be consistent? I have attached the print screen for your reference.

Thanks!

Hi @wanderer74,

I hope you are well today and thank you for your question.

You can try achieving this by using the attached small plugin specially developed for you that contains following custom code.

function colorlib_gettext_with_context2( $translated_text, $untranslated_text, $domain ) {
	if ( trim($translated_text) == 'Leave a Reply' ) {
		$translated_text = 'Add your custom text here';
	} else if ( trim($translated_text) == 'Post Reply' ) {
		$translated_text = 'Custom text';
	}
	return $translated_text;
}
add_filter( 'gettext', 'colorlib_gettext_with_context2', 10, 3 );

Please change the text ‘Custom text’ in the above plugin code.

Best Regards,
Movin

Hi

Thanks so much for your help! However, my installation of the plugin failed.

I have attached the error message!

My website is whywendywrites.com

Thanks so much!

This is because it seems you have already installed the custom plugin on your site so please remove it before installing the shared custom plugin.