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;
}
In Canada, payment processors, like those that provide payment processing services t...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025