Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #39379


Ignore:
Timestamp:
12/23/2016 04:29:09 PM (8 years ago)
Author:
davidakennedy
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #39379

    • Property Component changed from General to Bundled Theme
    • Property Summary changed from Error font-family for Simplified Chinese (zh_CN) in twentyseventeen’s CSS to Twenty Seventeen: Error font-family for Simplified Chinese (zh_CN) in CSS
  • Ticket #39379 – Description

    initial v2  
    1 Topic: https://wordpress.org/support/topic/error-font-family-for-simplified-chinese-zh_cn-in-twentyseventeens-css-2/
     1In 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
     6html[lang^="zh-"] body,
     7html[lang^="zh-"] button,
     8html[lang^="zh-"] input,
     9html[lang^="zh-"] select,
     10html[lang^="zh-"] textarea {
     11        font-family: "PingFang TC", "Helvetica Neue", Helvetica, STHeitiTC-Light, Arial, sans-serif;
     12}
     13}}}
     14
     15However, 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
     17So it needs to add these line after that, and it works well:
     18
     19{{{
     20html[lang="zh-CN"] body,
     21html[lang="zh-CN"] button,
     22html[lang="zh-CN"] input,
     23html[lang="zh-CN"] select,
     24html[lang="zh-CN"] textarea {
     25    font-family: "PingFang SC", "Helvetica Neue", Helvetica, STHeitiSC-Light, Arial, sans-serif
     26}
     27}}}
     28
     29See: https://wordpress.org/support/topic/error-font-family-for-simplified-chinese-zh_cn-in-twentyseventeens-css-2/