Hey folks, I’m trying to change the font of a specific section, and it’s not working for some reason.
A few notes:
- The font size is changing just fine
- Adjusting the CSS in Chrome’s inspect tool seems to work just fine
- I’ve tried other system fonts, and no matter what I can’t get the font family to actually change
h2.dsgn-pck__heading {
font-family: 'Amonos Display Medium';
font-size: 50px;
}
In case the problem is with my custom font loading, here’s what I have:
In themes.css.variables I’ve added
{%- style -%}
@font-face {
font-family: 'Amonos Display Medium';
src: url("{{ 'amonosdisplaymedium.woff2' | asset_url }}") format('woff2'),
url("{{ 'amonosdisplaymedium.woff2.woff2' | asset_url }}") format('woff');
}
Any help would be GREATLY appreciated!