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

    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.

    • This topic was modified 7 years, 7 months ago by MaghBoppert.
    #785568

    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

    #792332

    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.

    #792601

    Hi,

    Ok, thanks for the feedback. I’m guessing there is no solution for that then, let us know if you should need any further help on the topic though.

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.