All things Shopify and commerce
i have added my font as an asset
then i upload this code in theme.liquid
<style>
@font-face {
font-family: "FredokaOne-Regular";
src: url("{{ 'FredokaOne-Regular.woff2' | asset_url }}");
src: local("FredokaOne-Regular.woff2"),
local("FredokaOne-Regular.woff2"),
url("{{ 'FredokaOne-Regular.woff2' | asset_url }}?#iefix") format("embedded-opentype"),
url("{{ 'FredokaOne-Regular.woff2' | asset_url }}") format("woff2"),
url("{{ 'FredokaOne-Regular.woff2' | asset_url }}") format("woff"),
url("{{ 'FredokaOne-Regular.woff2' | asset_url }}") format("truetype");
font-weight: 500;
font-style: italic;
}
</style>
then i am adding this code in headings css in customiser to change headings but its not working where i am doing wrong
body {
font-family: "FredokaOne-Regular", sans-serif;
}
Solved! Go to the solution
This is an accepted solution.
my mistake was in place of body i need h1
h1 {
font-family: "FredokaOne-Regular", sans-serif;
}
This is an accepted solution.
my mistake was in place of body i need h1
h1 {
font-family: "FredokaOne-Regular", sans-serif;
}
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025