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?
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