Shopify themes, liquid, logos, and UX
I'm trying to use custom font on my website I added the woff and woof2 files in my assets and inserted the following code inside the theme.liquid file:
<style>
@font-face {
font-family: "neutra_textbook";
src: url('{{ "neutratextbook.woff2" | asset_url }}') format("woff2"),
url('{{ "neutratextbook.woff" | asset_url }}') format("woff");
font-weight: normal;
font-style: normal;
}
</style>
but it give me this error:
downloadable font: rejected by sanitizer
Hi @DeLeo , Did you try to download the font from other source, maybe the font files are corrupted.
I fixed it by loading the same font files inside the shopify "files" section and now it works, still not understanding why it don't works if fonts are loaded insde assets
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024