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
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
Thanks, I think that works for me.
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