Has anyone encountered a problem of @font-face not working with Sage. It probably has nothing to do with the theme directly, but perhaps with Sass and how it is compiled?
This is code that I have (_global.scss, generated with webfont-generator):
Iâve pasted font files in both folders - where _global.scss lives and where main.scss lives (as this file imports _global.scss). Even with this, I has no luck getting the fonts to be rendered. Interestingly, when I inspect text with Chrome dev tools, the css rule is applied correctly.
GLOBAL REPLY: @erikkowalski & @kalenjohnson i finally solved that. I didnât figure out why it wasnât working so I decided to try another random font and everything was fine, so I tried another font-face converter (fontsquirrel ) and now as you can see at www.wearearzt.com everything is fine.
So I think was a font-conversion problem
Troubleshooting. I tried some other fonts and everything works fine so I thought it was a font-conversion because I converted it for the site. Thatâs all.
I have another problem, I use a customize font and put the font in public/uploads/default/original/1X directory and add some CSS @fontface in the setting.
At first, it works fine and every font has changed but now [without does any thing] I get
file not found error (404)
in Chrome console.
The fonts are still there and owner of the directory is discourse and the group is www-data and has all the required permission.
I donât know what happen.
can anyone help me, please!
It looks like youâve uploaded the font in the wrong directory. It needs to be in /wp-content/themes/themename/resources/assets/fonts - or your bedrock theme directory.