开发者 | jr00ck |
---|---|
更新时间 | 2013年9月16日 19:14 |
捐献地址: | 去捐款 |
PHP版本: | 3.0 及以上 |
WordPress版本: | 3.6 |
版权: | GPLv3 or later |
版权网址: | 版权信息 |
<i class="icon-wordpress"></i>
Google icon 2x size
<i class="icon-google icon-2x"></i>
Google Chrome icon large size
<i class="icon-chrome icon-large"></i>
Shortcode Option
Don't want to worry about HTML tags? You can use a shortcode in your posts, pages and even widgets to display a Font Awesome More icon.
Note: In my plugin (as of 3.5), the "icon-" prefix is no longer needed in shortcode attributes. This is in preperation for the Font Awesome 4.0 release that will change the prefixes. Therefore, I highly recommend that you only use the shortcode options for icons, and not HTML, so that the plugin can handle the prefixes for you and your icons will not break when Font Awesome 4.0 comes out.
WordPress icon
[icon name=wordpress]
Google icon 2x size
[icon name=google size=2x]
Google Chrome icon with title and no space after icon
[icon name=chrome title="Google Chrome" space=false]
PayPal icon using shortcode within PHP instead of using the HTML option (e.g. within your theme/template files)
<?php echo do_shortcode('[icon name=paypal]'); ?>
New Shortcode Options since 3.5
Now you can turn off the automatic spacing after an icon with "space=false". See screenshots for an example of results.
In preperation for Font Awesome 4.0, you can also leave off the "icon-" prefix on your shortcode options, as that prefix will be changing. The plugin will automatically add the appropriate prefix for you.
Evernote icon with no trailing space (note no "icon-" prefix)
[icon name=evernote space=false]
New Shortcode Options since 3.4
Now you can easily set the size and a title/alt text to icons within shortcodes. Size options are large, 2x, 3x, or 4x.
WordPress icon (large size)
[icon name="wordpress" size="large"]
Google icon (3x size)
[icon name="google" size="3x"]
Google Chrome icon (4x size with title text)
[icon name="chrome" size="4x" title="Use Google Chrome"]
鸣谢
/wp-content/plugins/
directory.[icon name=pencil]
<i>
element.[icon name="wordpress" title="WordPress" size="2x"]
Rachel’s plugin contains all the icons from Font Awesome. This plugin contains all of those icons plus the additional icons provided by Font Awesome More (Fontstrap), which includes important icons like PayPal, YouTube, Skype, and WordPress, to name a few. It also has a few more features like title/alt text and size options for your icons via shortcodes.
No, this plugin includes all icon sets from both Font Awesome and Font Awesome More.
No. You must deactivate and/or remove Font Awesome Icons plugin before activating this plugin, which is a superset of Font Awesome Icons.
No. It is completely independent of Twitter Bootstrap.
Nope. No settings page is created. Just activate and start using. No configuration required.