新版 WordPress 預設的佈景主體將不會使用 Google Fonts

814次阅读
没有评论

新版 WordPress 預設的佈景主體將不會使用 Google Fonts

新版 WordPress 的預設佈景主體 (Theme) 出於隱私考量,將不會使用 Google Fonts:「Google Fonts are included locally in bundled themes」。

這邊講的是年份系列的 Theme,從 Twenty Twelve (2012) 到 Twenty Seventeen (2017):

新版 WordPress 預設的佈景主體將不會使用 Google Fonts

再更後新的版本,首先是沒有 Twelve Eighteen (2018) (可以從「Themes by WordPress.org | WordPress.org」這邊翻),而從 Twelve Nineteen (2019) 後都沒有使用 Google Fonts 了,在 GitHub 上的 WordPress/twentynineteen 這邊可以 clone 下來確認:

$ git grep google
classes/class-twentynineteen-svg-icons.php: ‘google-plus’ => array(
classes/class-twentynineteen-svg-icons.php: ‘plus.google.com’,
classes/class-twentynineteen-svg-icons.php: ‘google-plus’ => ‘
classes/class-twentynineteen-svg-icons.php: ‘google’ => ‘

官方還是有給繼續使用 Google Fonts 的方法,在「Continuing to use Google Fonts」這段有提到設定的方式。

正文完
可以使用微信扫码关注公众号(ID:xzluomor)
post-qrcode
 
评论(没有评论)
Generated by Feedzy