New Landing How can we help? Cardinal Custom Fonts in WooCommerce Mails

Viewing 2 posts - 1 through 2 (of 2 total)
  • Posted in: Cardinal
  • #249024
    djsface
    Member
    Post count: 10

    Hey!

    I want to add my Custom Fonts, which ive uploaded to “Theme Options” -> “Font Options”, to be shown in my WooCommerce Mails. I’ve tried a few things with the email-styles.php file, but i cant find out, how to implement the custom fonts. Somehow it should work with @font-face right?

    Thanks a lot!

    #249033
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please paste this code at functions.php file.

    add_action('woocommerce_email_header', 'add_css_to_email');
     
    function add_css_to_email() {
    echo '
    <style type="text/css">
    /* Put your font face CSS code here */
    
    </style>
    ';
    }

    Thanks
    Mohammad

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register