Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #167084

    Hi,

    I need to add font “Microsoft Yahei” to the Chinese version of site. What would be the syntax to use to add it to the css file?

    If it’s not possible to do that for the entire site, then how could I change the font-family for main menu and footer?

    This is what I have in the Chinese version Quick CSS field,

    html[lang=”zh-hans”] #top .main_menu .menu li > a{ font-size: 14px }
    html[lang=”zh-hans”] #socket .sub_menu_socket { font-size: 12px }

    To add “Microsoft Yahei” to the font-family, can I change it to like this?
    html[lang=”zh-hans”] #top .main_menu .menu li > a{ font-size: 14px; font-family:’Droid Sans’, HelveticaNeue, ‘Helvetica Neue’, Helvetica, ‘Microsoft Yahei’, Arial, sans-serif }

    Thank you!

    #167353

    Hi,

    Can you post the link to your website (Chinese version) please?

    Regards,
    Josue

    #167604
    #167728

    Hello!

    This would work:

    html[lang="zh-hans"] #top .main_menu .menu li > a{ font-family: ‘Microsoft Yahei’, sans-serif }

    Best regards,
    Josue

    #167734

    Hi Josue,

    What about font size? do I merge the two together or do I keep the font-family as a different entry?

    Is there a way to make the font one of the default ones for the entire Chinese site?

    thanks,

    #167735

    Hey!

    Yes you can mix it:

    html[lang="zh-hans"] #top .main_menu .menu li > a{ font-family: ‘Microsoft Yahei’, sans-serif; font-size: 14px; }
    

    I didn’t get what you mean by defaulting the font for the chinese site.

    Cheers!
    Josue

    #167748

    I meant to use “Microsoft Yahei” font for the entire Chinese version of the site which includes everything under http://acutta.com/template/?lang=zh-hans.

    thanks,

    #167999

    Hey!

    Sure, this will do it:

    html[lang="zh-hans"] *{ font-family: ‘Microsoft Yahei’, sans-serif; }
    

    Cheers!
    Josue

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘change of font-family’ is closed to new replies.