Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1185697

    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!

    #1185755

    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

    #1185980

    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.

    #1186248

    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

    #1186259

    Thanks. It wokrs.

    #1186270

    Hi bcerin,

    We’re glad that we could help :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘How to change "Save my name, email, and website …" text in comment section’ is closed to new replies.