Hi!
1. How can I change the “Save my name, email, and website in this browser for the next time I comment.” text in the comment section. I have alredy edited the other couple lines in coments.php (Want to join the discussion? Feel free to contribute!). I tried with Loco Translate, but I can not fint this text. Is this text part of theme or wordpress?
2. I also want to remove the field “website”.
Thanks!
Hey bcerin,
1. The comment section is part of WordPress and just used by theme.
2. Add this code in your child theme’s functions.php:
function remove_comment_website_field($fields) {
unset($fields['url']);
return $fields;
}
add_filter('comment_form_default_fields','remove_comment_website_field');
Best regards,
Nikko
1. Interesting
– I can translate “Want to join the discussion?” in coments.php.
– I can translate the word “19. 2. 2020 at 8:20” with Loco translate in Enfold child.
– But I can not translate: “Save my name, email, and website in this browser for the next time I comment.”
For now, I will hide this opt-in checkbox in settings -> discussion -> Show comments cookies opt-in checkbox…
If anyone knows how to translate, please help.
2. Thanks. It works fine.
Hi bcerin,
Would giving you the location of that text helps?
If it does, you can find it in wp-includes > comment-template.php (line 2335):
__( 'Save my name, email, and website in this browser for the next time I comment.' )
Best regards,
Nikko
Thanks. It wokrs.
Hi bcerin,
We’re glad that we could help :)
Thanks for using Enfold and have a great day!
Best regards,
Nikko