Shopify themes, liquid, logos, and UX
Hey there,
We are having some issues with our typeBasePrimary font not populating. We wanted to set our typeBasePrimary font as 'Nuform Sans' but it won't pull for some reason. We have no issue with typeHeaderPrimary however.
Site link: https://eatcozumi.com/
Code:
@font-face {
font-family: "Nuform Sans";
src: url('{{ "NuformSans-Medium.woff2" | https://cdn.shopify.com/s/files/1/0624/9077/1626/files/NuformSans-Medium.woff2?v=1711727437}}') format("woff2"),
url('{{ "NuformSans-Medium.woff2" | https://cdn.shopify.com/s/files/1/0624/9077/1626/files/NuformSans-Medium.woff?v=1711727437}}') format("woff");
}
@font-face {
font-family: "GTAlpina";
src: url('{{ "GTAlpina.woff2" | https://cdn.shopify.com/s/files/1/0624/9077/1626/files/GTAlpina.woff2?v=1711727437}}') format("woff2"),
url('{{ "GTAlpina.woff2" | https://cdn.shopify.com/s/files/1/0624/9077/1626/files/GTAlpina.woff?v=1711727438}}') format("woff");
}
:root {
--typeHeaderPrimary: 'GTAlpina';
--typeHeaderFallback: 'GTAlpina';
--typeHeaderSize: {{ settings.type_header_base_size | default: 32 | append: 'px' }};
--typeHeaderStyle: {{ settings.type_header_font_family.style }};
--typeHeaderWeight: normal;
--typeHeaderLineHeight: {{ settings.type_header_line_height | default: 1.4 }};
--typeHeaderSpacing: {{ settings.type_header_spacing | default: '25' | divided_by: 1000.00 | append: 'em' }};
--typeBasePrimary:'Nuform Sans';
--typeBaseFallback:'Nuform Sans';
--typeBaseSize: {{ settings.type_base_size | default: 16 | append: 'px' }};
--typeBaseWeight: 500;
--typeBaseStyle: {{ settings.type_base_font_family.style }};
--typeBaseSpacing: {{ settings.type_base_spacing | default: '50' | divided_by: 1000.00 | append: 'em' }};
--typeBaseLineHeight: {{ settings.type_base_line_height | default: 1.6 }};
{% if settings.button_style == 'round-slight' %}
--buttonRadius: 3px;
{% elsif settings.button_style == 'round' %}
--buttonRadius: 35px;
{% else %}
--buttonRadius: 0;
{% endif %}
--iconWeight: {{ settings.icon_weight | default: '5px' }};
--iconLinecaps: {{ settings.icon_linecaps | default: 'miter' }};
}
Solved! Go to the solution
This is an accepted solution.
Hi @joansu
This is Richard from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid above the </head> to get this solved
Step 1: Online Stores > Themes > More Actions > Edit code
Step 2: click on theme.liquid and paste the code above the </head>
<style>
@font-face {
font-family: "Nuform Sans";
src:
url("https://cdn.shopify.com/s/files/1/0624/9077/1626/files/NuformSans-Medium.woff2?v=1711727437") format("woff2");
}
@font-face {
font-family: "GTAlpina";
src: url("https://cdn.shopify.com/s/files/1/0624/9077/1626/files/GTAlpina.woff2?v=1711727437") format("woff2");
}
:root {
--typeHeaderPrimary: 'GTAlpina';
--typeHeaderFallback: 'GTAlpina';
--typeHeaderSize: {{ settings.type_header_base_size | default: 32 | append: 'px' }};
--typeHeaderStyle: {{ settings.type_header_font_family.style }};
--typeHeaderWeight: normal;
--typeHeaderLineHeight: {{ settings.type_header_line_height | default: 1.4 }};
--typeHeaderSpacing: {{ settings.type_header_spacing | default: '25' | divided_by: 1000.00 | append: 'em' }};
--typeBasePrimary:'Nuform Sans' !important;
--typeBaseFallback:'Nuform Sans';
--typeBaseSize: {{ settings.type_base_size | default: 16 | append: 'px' }};
--typeBaseWeight: 500;
--typeBaseStyle: {{ settings.type_base_font_family.style }};
--typeBaseSpacing: {{ settings.type_base_spacing | default: '50' | divided_by: 1000.00 | append: 'em' }};
--typeBaseLineHeight: {{ settings.type_base_line_height | default: 1.6 }};
{% if settings.button_style == 'round-slight' %}
--buttonRadius: 3px;
{% elsif settings.button_style == 'round' %}
--buttonRadius: 35px;
{% else %}
--buttonRadius: 0;
{% endif %}
--iconWeight: {{ settings.icon_weight | default: '5px' }};
--iconLinecaps: {{ settings.icon_linecaps | default: 'miter' }};
}
</style>
Hope this can help you solve the issue
Best regards,
Richard | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
This is an accepted solution.
Hi @joansu
This is Richard from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid above the </head> to get this solved
Step 1: Online Stores > Themes > More Actions > Edit code
Step 2: click on theme.liquid and paste the code above the </head>
<style>
@font-face {
font-family: "Nuform Sans";
src:
url("https://cdn.shopify.com/s/files/1/0624/9077/1626/files/NuformSans-Medium.woff2?v=1711727437") format("woff2");
}
@font-face {
font-family: "GTAlpina";
src: url("https://cdn.shopify.com/s/files/1/0624/9077/1626/files/GTAlpina.woff2?v=1711727437") format("woff2");
}
:root {
--typeHeaderPrimary: 'GTAlpina';
--typeHeaderFallback: 'GTAlpina';
--typeHeaderSize: {{ settings.type_header_base_size | default: 32 | append: 'px' }};
--typeHeaderStyle: {{ settings.type_header_font_family.style }};
--typeHeaderWeight: normal;
--typeHeaderLineHeight: {{ settings.type_header_line_height | default: 1.4 }};
--typeHeaderSpacing: {{ settings.type_header_spacing | default: '25' | divided_by: 1000.00 | append: 'em' }};
--typeBasePrimary:'Nuform Sans' !important;
--typeBaseFallback:'Nuform Sans';
--typeBaseSize: {{ settings.type_base_size | default: 16 | append: 'px' }};
--typeBaseWeight: 500;
--typeBaseStyle: {{ settings.type_base_font_family.style }};
--typeBaseSpacing: {{ settings.type_base_spacing | default: '50' | divided_by: 1000.00 | append: 'em' }};
--typeBaseLineHeight: {{ settings.type_base_line_height | default: 1.6 }};
{% if settings.button_style == 'round-slight' %}
--buttonRadius: 3px;
{% elsif settings.button_style == 'round' %}
--buttonRadius: 35px;
{% else %}
--buttonRadius: 0;
{% endif %}
--iconWeight: {{ settings.icon_weight | default: '5px' }};
--iconLinecaps: {{ settings.icon_linecaps | default: 'miter' }};
}
</style>
Hope this can help you solve the issue
Best regards,
Richard | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025