Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
The font file is called: Balava_Demo.woff2
I added the code below in "theme.css" under the assets folder because there is no "base.css" section:
@font-face {
font-family: 'Balava_Demo';
src: url('Balava_Demo.woff2') format('woff2');
font-style: normal;
}
tagname or .classname or #id{
font-family: Balava_Demo;
}
Can someone please correct what I have done wrong because I can't see the font when I try and add it in the "Typography" section of "Theme settings"
Thanks
Hello @Matthew114 ,
Upload the Font File
Add Font to Theme CSS
Apply the Font to Elements
What code do I use to apply the font to specific elements?
And can I make it specifically Heading 1 only instead of Heading 3 for example?
Share your store url
To apply the custom font to specific elements, use CSS.
h1 { font-family: 'YourFontName', sans-serif; }
We have checked your code, and the 'Balava_Demo' font is not included. Only two fonts are present:
Which of these two fonts would you like to apply, and where? Please share some screenshots for reference.
Thats why I'm asking for help xD
Here's the code I have thus far. Can you correct it?
The 'Balava_Demo' font is not uploaded first you have to upload then add below code in your theme.liquid file
@font-face {
font-family: 'Balava';
src: url('https://cdn.shopify.com/s/files/1/0872/7196/4936/files/Balava_Demo.woff2?v=1740485555') format('woff2');
font-style: normal;
}
h1 {
font-family: 'Balava', sans-serif;
}
I have uploaded it
that code only?
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025