Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1015961

    Hello,
    I created a signup form using Contents Elements -> Mailchimp Signup from the Layout Builder.
    When someone enters an email address that is already subscribed, an error message appears.

    I don’t like the German translation of that message. Where can I change it, so that it stays when you update Enfold?

    Regards,
    Thomas

    • This topic was modified 6 years, 2 months ago by Thomas.
    #1016548

    Hey Thomas,

    To customize/trasnslate the error messages add the below code in your functions.php by going to appearance > Editor > functions.php and replace the sentences after the equal signs ( = ) with your custom text. Make sure to add quotes before and after your text (like in the sample code below).

    Please use a child theme so your changes remain intact when you update the main theme ( http://kriesi.at/documentation/enfold/using-a-child-theme/ ).

    
    add_filter('avf_mailchimp_messages', 'avf_mailchimp_messages_mod', 10, 1);
    function avf_mailchimp_messages_mod($message) {
        $message['email'] = 'Please provide a valid email address.';
        $message['all'] = 'Please fill in all required fields.';
        $message['already'] 'This email address is already subscribed, thank you!';
        $message['general'] = 'We are very sorry but something went wrong. Please try again later.';
        $message['invalid_field'] = 'Please make sure that your fields are filled in correctly';
    
        return $message;
    }
    

    Best regards,
    Peter

    #1016748

    Thanks, I think that works for me.

    #1016792

    Hi,

    I’m glad you got this resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Change translation for message when email address is already subscribed to list’ is closed to new replies.