Archived topic
How do i change the text after the comment bubble?
4 replies · Started by Gustav on February 7, 2016
Hello everyone!
How can i change the text belonging to the comment bubble in my posts?
And is it possible to change the position of the comment link from the bottom of the post to the top?
/ Gustav
Hi Gustav,
You can use the generate_leave_comment filter:
add_filter( 'generate_leave_comment','generate_leave_comment_text' );
function generate_leave_comment_text()
{
return 'Leave a comment';
}
To move the comments link you would have to add some code like this: https://gist.github.com/generatepress/3a769e3ca9643578e898
Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/
Hi Tom!!
my website is in Hebrew and the comments area is in English
is there any other way to change the text to Hebrew? my knowledge in code is very basic.
i want to change this text :
"Leave a Comment"
"post comment"
thank you
simcha
Hi there,
You would need to use the filters as Tom suggested above:
add_filter( 'generate_leave_comment','generate_leave_comment_text' );
function generate_leave_comment_text()
{
return 'Hebrew leave comment text here';
}
add_filter( 'generate_post_comment','generate_post_comment_text' );
function generate_post_comment_text()
{
return 'Hebrew post comment text here';
}
Adding php: https://docs.generatepress.com/article/adding-php/
Let me know.
Hopefully one day someone will translate the theme to Hebrew so this will happen automatically: https://translate.wordpress.org/locale/he/default/wp-themes/generatepress