
內容簡介
me 可以讓你自動將最新版本的 Font Awesome 及其相應的 CSS、短碼和 TinyMCE 圖示短碼生成器集成到你的 WordPress 項目中。
功能
始終保持最新版本- 自動獲取 Font Awesome 的最新可用版本,這意味著你不再需要手動更新主題/插件中包含的版本。
向後兼容- 短碼輸出會根據你選擇的 Font Awesome 版本自動更新,這意味著你可以切換版本而不必修改短碼。
與其他插件兼容- 設計與由 Font Awesome Icons、Font Awesome More Icons 和 Font Awesome Shortcodes 生成的短碼配合使用,因此你可以切換到 Better Font Awesome,而現有的短碼仍然有效。
CDN 速度- Font Awesome CSS 從超快且可靠的 jsDelivr CDN 获取。
短碼生成器- 包括易於使用的 TinyMCE dropdown 短碼生成器。
設置
所有設置都可以通過“設置”菜單中的“Better Font Awesome”進行調整。
用法
Better Font Awesome 可以以 3 种不同的方式使用:短碼、HTML 和 TinyMCE。
1.短碼
[icon name="flag" class="2x spin border" unprefixed_class="my-custom-class"]
請注意,前綴(fa- 和 icon-)並不是必需的,但如果你包括它們,一切都會正常工作!Better Font Awesome 足夠聰明,知道你使用的 Font Awesome 版本,並更正前綴。
這意味著,無論你選擇什麼版本的 Font Awesome,所有以下短碼都可以正常工作:
[icon name=”flag” class=”2x spin border”]
[icon name=”icon-flag” class=”icon-2x icon-spin icon-border”]
[icon name=”fa-flag” class=”fa-2x fa-spin fa-border”]
[icon name=”icon-flag” class=”fa-2x spin icon-border”]
你可以在 Github 上閱讀有關短碼使用的更多信息。
2.TinyMCE
Better Font Awesome 還在 TinyMCE 的視覺模式下提供易於使用的下拉菜單。您可以查看本插件的截圖以了解它的外觀。
3.HTML
請注意,HTML 使用需要前綴,并且是特定於版本的。因此,推荐使用短碼而非 HTML。但如果您確實想使用 HTML,可以在 Font Awesome 網站上了解更多信息。
高級/集成
Better Font Awesome 提供了三种不同的使用方式,並且易於與其他 WordPress 插件集成。若想提高網站的性能及使用体验,您可以考虑安装此插件。
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
Do you find this plugin helpful? Please consider leaving a 5-star review.
Better Font Awesome allows you to automatically integrate the latest available version of Font Awesome into your WordPress project, along with accompanying CSS, shortcodes, and TinyMCE icon shortcode generator.
Features
Always up-to-date – automatically fetches the most recent available version of Font Awesome, meaning you no longer need to manually update the version included in your theme/plugin.
Backwards compatible – shortcode output is automatically updated depending on which version of Font Awesome you choose, meaning that you can switch versions without having to modify your shortcodes.
Compatible with other plugins – designed to work with shortcodes generated with plugins like Font Awesome Icons, Font Awesome More Icons, and Font Awesome Shortcodes, so you can switch to Better Font Awesome and your existing shortcodes will still work.
CDN speeds – Font Awesome CSS is pulled from the super-fast and reliable jsDelivr CDN.
Shortcode generator – includes an easy-to-use TinyMCE dropdown shortcode generator.
Settings
All settings can be adjusted via Settings → Better Font Awesome.
Usage
Better Font Awesome can be used in 3 different ways: shortcode, HTML, and TinyMCE
1. Shortcode
[icon name="flag" class="2x spin border" unprefixed_class="my-custom-class"]
Note that prefixes (fa- and icon-) are not required, but if you do include them things will still work just fine! Better Font Awesome is smart enough to know what version of Font Awesome you’re using and correct of the appropriate prefix.
That means that all of the following shortcodes will work, regardless of what version of Font Awesome you choose:
[icon name=”flag” class=”2x spin border”]
[icon name=”icon-flag” class=”icon-2x icon-spin icon-border”]
[icon name=”fa-flag” class=”fa-2x fa-spin fa-border”]
[icon name=”icon-flag” class=”fa-2x spin icon-border”]
You can read more about shortcode usage on Github
2. TinyMCE
Better Font Awesome also provides you with an easy-to-use drop down menu when editing in TinyMCE’s visual mode. Check out our Screenshots to see what it looks like.
3. HTML
Note that prefixes are required for HTML usage, and are version-specific. For this reason, shortcode usage is encouraged over HTML. If you do want to use HTML, however, you can read more on the Font Awesome site.
Advanced / Integration
Better Font Awesome is built around the Better Font Awesome Library. This library allows you to integrate Better Font Awesome into any custom project you want to create (perhaps a theme or plugin with a constantly up-to-date icon list), and includes all the filters you might need.
Languages / Translations
English
French (thanks to David Tisserand)
Credits
Many thanks to the following plugins and their authors:
Font Awesome Icons by Rachel Baker
Font Awesome More Icons by Web Guys
Font Awesome Shortcodes by FoolsRun
Dmitriy Akulov and the awesome folks at jsDelivr
And many thanks to the following folks who helped with testing and QA:
Jeffrey Dubinksy
Neil Gee
Michael Beil
Rob Neue
Gary Jones
Jan Hoek
