Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Is it possible in Shopify to change font when the site changes language. I would like to use one font for English and another font for Swedish (as the Swedish alphabet contains additional characters not supported by the font I'm using in English). Is it possible to do this?
Solved! Go to the solution
This is an accepted solution.
Hi @SpongeRose63,
This is possible, just you need to add conditions to show it, and it will work fine.
You can use 'request.locale.iso_code' to check and change the font. Refer https://shopify.dev/api/liquid/objects#shop_locale-iso_code
For example:
{%- case request.locale.iso_code -%}
{%- when 'sv' -%}
<!-- show swedish -->
{%- when 'en' -%}
<!-- show english -->
{%- endcase -%}
Hope it helps!
This is an accepted solution.
Hi @SpongeRose63,
This is possible, just you need to add conditions to show it, and it will work fine.
You can use 'request.locale.iso_code' to check and change the font. Refer https://shopify.dev/api/liquid/objects#shop_locale-iso_code
For example:
{%- case request.locale.iso_code -%}
{%- when 'sv' -%}
<!-- show swedish -->
{%- when 'en' -%}
<!-- show english -->
{%- endcase -%}
Hope it helps!
Thank you so much!
Hey LitExtension,
I have the same problem. But I'm not sure how to use the code you showed. Could you how an example of how to use it with font files uploaded to my shopify files? My site is English and Korean. Thanks!
I'm just not really code friendly so I am not sure how to apply the code. Could you show me how you applied the code to your site? It would be of tremendous help!
In Canada, payment processors, like those that provide payment processing services t...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025