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;
}
The year-end shopping spree is around the corner! Is your online store ready for the ...
By JasonH Nov 10, 2024We recently spoke with Zopi developers @Zopi about how dropshipping businesses can enha...
By JasonH Oct 23, 2024A big shout out to all of the merchants who participated in our AMA with 2H Media: Holi...
By Jacqui Oct 21, 2024