开发者 |
McGuive7
aaronbmm mightyminnow |
---|---|
更新时间 | 2021年3月11日 13:46 |
捐献地址: | 去捐款 |
PHP版本: | 3.0 及以上 |
WordPress版本: | 5.6.2 |
版权: | GPLv2+ |
版权网址: | 版权信息 |
[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
ready()
jQuery method to support latest jQuery versions.ready()
jQuery method to support latest jQuery versions.