Hello Everyone!
I just want the menu headings NEVADA, TENNESSEE, COMPANY, SHOP as Highway Gothic (HWYGEXPD) in all versions. Please help me. Thank you.
Store: https://blue-chic-clothes.myshopify.com/
Password: Admin
Hello Everyone!
I just want the menu headings NEVADA, TENNESSEE, COMPANY, SHOP as Highway Gothic (HWYGEXPD) in all versions. Please help me. Thank you.
Store: https://blue-chic-clothes.myshopify.com/
Password: Admin
Can go into “Custom CSS” of header section, or “Custom CSS” in theme settings, or at the bottom of the assets/base.css
nav summary.list-menu__item,
nav .menu-drawer__close-button {
font-family: var(--font-heading-family);
}
Great. It worked. Thank you very much.
Make it
nav summary.list-menu__item,
nav .menu-drawer__close-button,
.menu-drawer__utility-links {
font-family: var(--font-heading-family);
}
But it’s not showing here. why?
Ah, I did not really pay attention to the font look – I kinda implied that actual loading of the font is already done.
And you’re right – this is not the font you want, this is a fallback font, “sans-serif”, which can be different on different browsers/devices.
In your main browser you may still see the font you wanted because it may still be in browser cache since you’ve researched it.
And because we see the fallback font it means that font assignment is done properly, but the actual font file is not loaded.
Here is you problem – you’ve added this to your assets/base.css:
@font-face {
font-family: "Highway Gothic Expanded";
src: url("{{ "HWYGEXPD.woff" | asset_url }}") format("woff");
font-weight: normal;
font-style: normal;
font-display: swap; /* Improves font loading performance */
}
However, liquid code is not processed in .css assets, and this is the reason that the font is not loaded – the URL is not right.
Here is what you should do:
Follow the steps 1-5 in my previous post.
Again – these CSS rules use liquid code. Liquid is not processed in .css assets (as I wrote above), so it would not work in assets/base.css.