Hi Everyone!
Thank you in advance for your kind help.
So I already added custom CSS and custom fonts to a couple of Shopify stores, so I know how to upload the files to the assets folders and add the @font-face to the code. But this time I truly tried everything I could find here and in other forums and nothing works.
I’m trying to add the custom font OGG as the headings font to the Impulse theme and followed their article. They show on the back end/when I’m logged in, but not on the front end in both Safari and Chrome. When you look at the code the CSS command works, but it can’t find the custom font and substitutes it with Times. So there needs to be some kind of connection issue.
Store: https://birdie-nall.myshopify.com/
PW: heritage
Here’s what I’ve done:
-
Uploaded the .woff, .woff2 and .eot files to the Assets
-
Tried adding the following code to both my theme-custom.css (how I usually do it) and the css-variables.liquid (how Archetype themes describe in their article) files:
@font-face{
font-family: ‘Ogg-Regular’, serif;
src: url(‘{{ ‘Ogg-Regular.eot’ | asset_url }}’); /* IE9*/
src: url(‘{{ ‘Ogg-Regular.eot?#iefix’ | asset_url }}’) format(‘embedded-opentype’), /* IE6-IE8 /
url(‘{{ ‘Ogg-Regular.woff2’ | asset_url }}’) format(‘woff2’), / chrome, firefox /
url(‘{{ ‘Ogg-Regular.woff’ | asset_url }}’) format(‘woff’); / chrome, firefox */
}
.Heading, .Rte h1, .Rte h2, .Rte h3, .Rte h4, .Rte h5, .h1, .h2, .h3, .h4, .h5, h1, h2, h3, h4, h5 {
font-family: ‘Ogg-Regular’, serif!important;
font-style: normal;
font-weight: 400;
letter-spacing: 1px;
}
Also tried a few other verbiages, but the above should be correct? Emptied cashes and everything, but it just doesn’t show on the front end.
Thank you SO much for your help!
Sally



