css selectors - Custom font for specific language shopify
Solution:
The easiest way to do this is to give your body tag a class with the language .eng and .arabic, or just target arabic, have both fonts loaded in your store and just then just call the new font on body.arabic in css.
If you give the functionality to move between languages you need to write some javascript that will change this class on the selection of a new language.
The drawback to this is that you are loading both fonts all the time which is not optimal for performance but this is the easiest method.
Source
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.