Tagged: CONTACT FORM, ismael
Hey,
I would like to change the font-family and font-size in the generated e-mail, when somebody sends me an e-mail with the contact form from enfold.
Actually, it’s “Times New Roman”, which isn’t really nice at all.
Thanks for the help.
Hey Daniel,
Thank you for using Enfold.
Please try this filter in the functions.php file:
add_filter('avf_form_message', 'avf_form_message_mod_checkbox', 10, 3);
function avf_form_message_mod_checkbox($message, $new_post, $form_params) {
$message = "<div style='font-family: Arial !important;'>" . $message;
$message .= "</div>";
return $message;
}
I’m not sure if this is going to work though because email clients tend to override the default style of the email message.
Best regards,
Ismael
Thanks for the reply, Ismael.
You are right, it’s not working in the email client because it overrides the style. But when I print it, the font-family changes to Arial. So there is probably no solution for that.