All things Shopify and commerce
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
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;
}