Custom fonts in gift card email

To add a custom font to the gift card email, follow these steps.

This example uses the Montserrat font from Google. To use a different font you will need to locate the correct URL.

1. Download the free Code Snippets plugin: https://wordpress.org/plugins/code-snippets/
2. Create a Snippet with the following code. You can optionally add this to your functions.php if you’re more familiar with that process instead.

add_action( 'pwgc_email_css', function() {
    ?>
    @font-face {
        font-family: 'Montserrat';
        font-style: normal;
        font-weight: 400;
        src: url(https://fonts.gstatic.com/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCtr6Hw0aXx-p7K4KLjztg.woff) format('woff');
    }
    <?php
} );
Skip to content