Hi everyone! I would love for the help of the experts in adding a
custom fonts to dawn theme - 4.0.0 / Online Store theme 2.0
There are other discussions here about custom font, but they all touch on older themes.
Is there a Savior here who can help me and many others?
I added the woff, woff2, ttf files to the assets folder,
and I used the code you can see in my next comment.
I also followed this guideadd-custom-fonts-to-shopify , but without success.
I do not see the fonts either in the preview through Shopify, nor on the public site
Any help will be amazing!
@Katana
@KetanKumar
@JohnFromJotting
@kazi_1
@diego_ezfy
I tried to embed this code at the bottom of the base.css page without success
@font-face {
font-family: ‘atlas-black-aaa’;
src: url(“atlas-black-aaa.woff2”) format(“woff2”),
url(“atlas-black-aaa.woff”) format(“woff”),
url(“atlas-black-aaa.ttf”) format(“truetype”);
font-weight: normal;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: antialiased;
}
1 Like
Also I tried this without success
@Galya25 Go to assets/base.css and past below font at bottom of file.
@font-face {
font-family: 'FONT NAME';
src: url("FILE NAME.woff2") format("woff2"),
url("FILE NAME.woff") format("woff"),
url("FILE NAME.otf") format("opentype");
font-weight: normal;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: antialiased;
}
Note: You have to change the font whatever you want to use in the above CSS.
1 Like
@Galya25
Hire a developer if you are facing issue.
The issues occur Due to irresponsive your theme.
Blocking of Some content to adjust the font.
Thank you.
1 Like
Okiiii I made it by the help of the other discussions
thank you!!