這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Google Web Fonts for WordPress

描述

Select up to 5 fonts from the Google Web Font Directory to make available for use in stylesheets.

More Info

** This plugin does not automatically change your fonts, only enqueue’s the font import stylesheet. Edit your theme or child theme stylesheet to use your chosen fonts **

Google Web Fonts for WordPress Plugin Home

For more control over imported fonts, read How to Use Web Fonts with WordPress.

安裝

  1. Upload and activate Google Web Fonts for WordPress.
  2. Navigate to the Theme Customizer.
  3. Choose your fonts from the dropdown list of all the fonts available and save your selections.
  4. Add the provided css font-family properties code to your theme or child theme stylesheet.

常見問題

My font is not showing up

If you have added the font family rule to the correct element in your stylesheet, try adding some specificity.

When styling a logo link with the class of .logo, I might add the #header id if I was having problems with strong specificity.

header .logo {

font-family: ‘Six Caps’;
font-size: 1.5em; /* Adjustments to font sizes may be needed. */
}

評價

There are no reviews for this plugin.

貢獻者及開發者

“Google Web Fonts for WordPress” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Google Web Fonts for WordPress 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

3.0

  • Another Rebuild!
  • License update to GPLv3
  • Uses Customizer UI
  • Fixed error caused by remote file_get_contents being disabled
  • Register activation hook to remove theme mods no longer used
  • Updated Read Me to emphasize that plugin only enqueues import stylesheet with chosen fonts

2.0

  • Complete rebuild
  • List of fonts in dropdown, saved as transients from the Developer API.
  • Font preview link to Google Web Font Directory info for the font.
  • Allow enabling/disabling of fonts.
  • Save options in theme_mods

2.0.1

  • Set font api transiet timeout to 24 hours.

2.0.2

  • Bug Fixes
  • Added initial Render Framework support

2.0.3

  • Readme Updated

2.0.4

  • Remove deactivation hook