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?
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' -%}
{%- when 'en' -%}
{%- 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!
We managed to get it working in English and Swedish, so I’m not sure why your site wouldn’t work using the same code, sorry.
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!
I paid a developer to install the code for me, so unfortunately I am not much help there! Sorry!