Hi,
I’m trying to change the font on our website for the theme Stiletto.
our font is called “Neutra Text Book Alt” and i have it in a woff2 file, I’ve been following this instruction below, but nothing happens, the font doesn’t change.
-
Convert your font from OTF to WOFF2
-
From your Shopify Admin go to Online Store > Themes > next to the theme you want to edit click Actions > Edit Code. Go to Asset/theme.css
-
Paste code at the bottom, replace name of you font and of you file
@font-face {
font-family: “NAME OF FONT”;
src: url(“NAME-OF-FONT-FILE.woff2”) format(“woff2”),
url(“NAME-OF-FONT-FILE.woff”) format(”woff");
}
Add Classes here with comma, { font-family: ”NAME OF FONT”Important; }
-
Upload the WOFF2-file under assets
-
Copy full font name (without ”.woff2” and paste above in NAME OF FONTS
-
Add classes here "Add Classes here with comma, ", if you want all text add:
h1,h2,h3,h4,h5,h6,body,p,a
- Add below/above our new code
// newly installed code starts
// newly installed code ends
-
I would be very thankful if someone could help me.
Thanks!