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!
|
|
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!
|
|
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
|
|
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?
|
|
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
|
|