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
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:
- Lora
- Helvetica
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;
}
1 Like