Language Specific Font Type

YK94
New Member
1 0 3

Hello all,

 

I'm trying to build my first Shopify store here! What got me sold was the huge community, support and the great reputation that the Shopify community has.

 

So here's where I' facing some difficulties. I'm trying to build an English and Arabic store. So far I have managed to do that smoothly plus change the layout to RTL. The problem is that the Arabic text does not look that good on the Helvetica (default Debut theme font). and if I try to change it, it changes for both the english and arabic stores. I have tried to dig in the code and added the specific code to the (theme.css.liquid) file:

 

{%- if shop.locale == 'ar' -%}
{% assign header_font = settings.type_header_font_arabic %}
{% assign base_font = settings.type_base_font_arabic %}
{%- else -%}
{% assign header_font = settings.type_header_font %}
{% assign base_font = settings.type_base_font %}
{%- endif -%}

 

Note that I have added arabic font components "type_header_font_arabic" and  "type_base_font_arabic" components in the (settings_data.json) file to contain:

"type_header_font": "helvetica_n7",
"type_header_font_arabic": "amiri_n7",
"type_base_font": "helvetica_n4",
"type_base_font_arabic": "amiri_n4",

 

Unfortunately it still shows the Helvetica font for both the English and Arabic pages/stores.

 

Any ideas on how to solve this language-specific font issue?

Replies 8 (8)
CloveHitch
New Member
1 0 0

Did you solve this problem yet?

KetanKumar
Shopify Partner
24923 2498 9041

@YK94 @CloveHitch 

Sorry you are facing this issue, it would be my pleasure to help you.

Welcome to the Shopify community!
Thanks for your good question.

Please share your site URL,
I will check out the issue and provide you a solution here.

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
fotiskaima
Tourist
15 0 3

Can you provide me the solution.
I want to change the font-family for the greek language.
The eshop is www.ewoodcollection.com

 

KetanKumar
Shopify Partner
24923 2498 9041

@fotiskaima 

do you need custom code 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
fotiskaima
Tourist
15 0 3

Yes that would be nice

KetanKumar
Shopify Partner
24923 2498 9041

@fotiskaima 

Yes please flow this setp

Yes, you can do easy to upload your custom font

1. Go to Online Store->Theme->Edit code
2.Asset->/theme.scss.liquid or your css file->upload your custom font all font tyep = TTF, OTF, WOFF, WOFF2, SVG
3. Asset->/theme.scss.liquid or your css file- ->paste below code at the bottom of the file.

@font-face {
font-family: 'Montserrat-Regular';
src: url('{{ 'Montserrat-Regular.eot?' | asset_url }}');
src: url('{{ 'Montserrat-Regular.eot??#iefix' | asset_url }}') format('embedded-opentype'),
url('{{ 'Montserrat-Regular.woff' | asset_url }}') format('woff'),
url('{{ 'Montserrat-Regular.ttf' | asset_url }}') format('truetype'),
url('{{ 'Montserrat-Regular.svg#Montserrat-Regular' | asset_url }}') format('svg');
font-weight: normal;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: antialiased;
}

can you please just change font name, for example, Montserrat-Regular to your custom font name

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
fotiskaima
Tourist
15 0 3

Thank you very much 

KetanKumar
Shopify Partner
24923 2498 9041

@fotiskaima 

its my pleasure to help us 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing