Hello,
I have tried to upload and use a specific custom font in my Shopify theme (Dawn 2.0).
It works with other fonts (using the same code) but for some reason the font I want to use is not working properly. I’ve downloaded it in various formats and spoke to the font label, they couldn’t help me either.
Here is the code I’m using:
in theme*.liquid, just above *
{% style %}
@font-face {
font-family: "TT_Travels_Text_Medium";
src: url("{{ 'https://cdn.shopify.com/s/files/1/0671/9317/6384/files/TT_Travels_Text_Medium.woff2?v=1718092352' }}") format("woff2");
}
{% endstyle %}
in the base.css file, at the end of the code
h1, h2, h3, h4, h5, h6, a, span, p {
font-family: "TT_Travels_Text_Medium", sans-serif !important;
font-weight: normal;
/* -moz-font-feature-settings: "ss01","ss02"; -webkit-font-feature-settings: "ss01","ss02"; font-feature-settings: "ss01","ss02"; */
}
--font-style-body {
font-family: "TT_Travels_Text_Medium", sans-serif !important;
/* -moz-font-feature-settings: "ss01","ss02"; -webkit-font-feature-settings: "ss01","ss02"; font-feature-settings: "ss01","ss02"; */
}
As I mentioned, when using the exact same code with other fonts, everything works fine.
It would be great, if there was a solution to this issue, as I really want to use this specific font for my shop.
Thanks in advance!