Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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.
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; }
4. Upload the WOFF2-file under assets
5. Copy full font name (without ”.woff2” and paste above in NAME OF FONTS
6. Add classes here "Add Classes here with comma, ", if you want all text add:
h1,h2,h3,h4,h5,h6,body,p,a
7. 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!
The font I want to add is called Neutra Text Book Alt. Perhaps Shopify won't accept the font?
Hi @MAYLA,
You can use my code
@font-face {
font-family: "Neutra Text Book Alt";
src: url("https://cdn.shopify.com/s/files/1/0612/7756/9224/files/NeutraText.woff2?v=1676079239") format("woff2")
}
using
h1,h2,h3,h4,h5,h6,body,p,a{
font-family:'Neutra Text Book Alt'
}
Hope my solution works perfectly for you!
Best regards,
Victor | PageFly
Hi, Thank you so much but it still doesn't work. I added your code to our "theme.css" But should I add it somewhere else?
Cab you give me a screenshot of the position added code?
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025