Custom Fonts
-
I’ve added custom fonts to email-header.php within <head>
<link rel="stylesheet"> <link rel="stylesheet">
Then on the email editor I’ve added custom styles:
@font-face {
font-family: 'roboto-mono';
src: url('https://shop.bristolbotbuilders.com/wp-content/uploads/useanyfont/5915Roboto-Mono.woff2') format('woff2'),url('https://shop.bristolbotbuilders.com/wp-content/uploads/useanyfont/5915Roboto-Mono.woff') format('woff');
font-display: auto
}
@font-face {
font-family: 'roboto';
src: url('https://shop.bristolbotbuilders.com/wp-content/uploads/useanyfont/9642Roboto.woff2') format('woff2'),url('https://shop.bristolbotbuilders.com/wp-content/uploads/useanyfont/9642Roboto.woff') format('woff');
font-display: auto
}
h1, h2, h2 a {
font-family: 'roboto-mono' !important;
}
p, td, th {
font-family: 'roboto' !important;
}
a {
color: #b90600 !important;
font-weight: 600 !important;;
}within the editor the preview has my custom fonts, but when i send a test email it’s the default fonts instead – what am I doing wrong? Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.