1 | | Topic: https://wordpress.org/support/topic/error-font-family-for-simplified-chinese-zh_cn-in-twentyseventeens-css-2/ |
| 1 | In the style.css of the new theme twentyseventeen (both stable and nightly build), line 664, which defines Chinese font: |
| 2 | |
| 3 | {{{ |
| 4 | /* Typography for Chinese Font */ |
| 5 | |
| 6 | html[lang^="zh-"] body, |
| 7 | html[lang^="zh-"] button, |
| 8 | html[lang^="zh-"] input, |
| 9 | html[lang^="zh-"] select, |
| 10 | html[lang^="zh-"] textarea { |
| 11 | font-family: "PingFang TC", "Helvetica Neue", Helvetica, STHeitiTC-Light, Arial, sans-serif; |
| 12 | } |
| 13 | }}} |
| 14 | |
| 15 | However, this CSS is only suitable for zh-HK and zh-TW, but not for zh-CN, which should not use traditional Chinese (TC), but Simplified Chinese (SC) |
| 16 | |
| 17 | So it needs to add these line after that, and it works well: |
| 18 | |
| 19 | {{{ |
| 20 | html[lang="zh-CN"] body, |
| 21 | html[lang="zh-CN"] button, |
| 22 | html[lang="zh-CN"] input, |
| 23 | html[lang="zh-CN"] select, |
| 24 | html[lang="zh-CN"] textarea { |
| 25 | font-family: "PingFang SC", "Helvetica Neue", Helvetica, STHeitiSC-Light, Arial, sans-serif |
| 26 | } |
| 27 | }}} |
| 28 | |
| 29 | See: https://wordpress.org/support/topic/error-font-family-for-simplified-chinese-zh_cn-in-twentyseventeens-css-2/ |