Change font in other language

ThemeBurn SupportForumsOpenCart ThemesPavilion OpenCart ThemeChange font in other language

This topic has been marked as resolved.

hi,my site have 2 language, and i want to use some Chinese font when the site is switch to Chinese,
In the default opencart I can just edit the stylesheet.css with the following code,

body {
font-family: Arial, “文泉驛正黑”, “WenQuanYi Zen Hei”, “儷黑 Pro”, “LiHei Pro”, “微軟正黑體”, “Microsoft JhengHei”, “標楷體”, DFKai-SB, sans-serif;
font-weight: 400;
color: #666;
font-size: 12px;
line-height: 20px;
width: 100%;
}

then i can use those Chinese font in the default opencart without any problem.

but after i installed pavilion, i find that it is no stylesheet.css files, please tell me how to set the font in CP so that the previous Chinese font mentioned above can be showed normally just like in the default opencart theme.

Thanks!

December 26, 2016 at 9:02 am #54717

Resolved

1) /catalog/view/theme/BurnEngine/template/tb/page.css.tpl

2) Insert this code block at the top:

@import url(http://fonts.googleapis.com/earlyaccess/notosanstc.css);

font-family: ‘Noto Sans TC’, sans-serif;

GOOD!

December 26, 2016 at 12:36 pm #54720

Hi,

You can use Theme CP > Theme Settings > Custom > Custom Stylesheet text field as well. This is a better option, when you update your theme.

BR,
ThemeBurn team

December 29, 2016 at 2:16 pm #54847

I also want to add the code to the custom style sheet
but it only valid if i edit catalog/view/theme/BurnEngine/template/tb/page.css.tpl
add in custom style sheet, nothing changed

do you know why i cant just add the code to custom style sheet to make it work well?

February 20, 2017 at 8:08 am #56617

Hi,

@import rule must be on top of all other rules, but all extra CSS that is inserter from Theme Settings is put at the bottom of the stylesheet. You can still modify page.css, but it is better to put all modifications in a vqmod.

BR,
ThemeBurn team

February 24, 2017 at 1:13 am #56809
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.