-
AuthorPosts
-
September 9, 2014 at 6:08 am #201174
Hi,
I am building a multilingual site (Chinese/English),
if I change the default-font-family in variables.less, it will mess up the font-family for another language’s fonts.
is there anything I can add in high level / high hierarchy / class
that allows me to configure the default-font-family of both languages. maybe “custom.css”?//in short
I basically want two default-font-family, one for each language,
in a way that on a single page, Chinese words will be automatically set to Chinese default-font-family, and English words will be automatically set to English default font-family.Does anyone know how to do this?
will really appreciate it!swissa Friendswissa
- Join date:
- November 2011
- Posts:
- 1955
- Downloads:
- 7
- Uploads:
- 277
- Thanks:
- 175
- Thanked:
- 717 times in 572 posts
September 9, 2014 at 9:49 am #548833If you have set up the multi-lingual properly you probably have a separate template for each language ( to assign the menu ).
So go to each template and clone the theme that you use, call one Chinese and the other English. Then using ‘Theme Magic’ you can assign fonts to each. Save and make sure Chinese uses the Chinese theme, english the english theme and there you have the easiest way.
Also it will save the css files into /local/ so that they are not overwritten.
Hope that helps
September 9, 2014 at 9:57 am #548835Thanks for replying, but i don’t think this works to assign font-family automatically according to the word/letter ‘s language.
Ex:
on a single page, Chinese words will be automatically set to Chinese default-font-family, and English words will be automatically set to English default font-family.
(I have many English words next to Chinese words on a single page.)swissa Friendswissa
- Join date:
- November 2011
- Posts:
- 1955
- Downloads:
- 7
- Uploads:
- 277
- Thanks:
- 175
- Thanked:
- 717 times in 572 posts
September 9, 2014 at 10:13 am #548838Understand what you mean now. This uses the site language to set the fonts not multiple fonts on the same page according to language.
Sorry, I can’t help. :-[
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
September 10, 2014 at 9:13 am #548992I would need to take a closer look at your site. It would be great if you can include url of your site, an illustrated screenshot of what you are trying to achieve. I will help you to check it further
-
AuthorPosts
This topic contains 5 replies, has 3 voices, and was last updated by Ninja Lead 10 years, 2 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum