WP Font Awesome

描述

This plugin allows you to easily embed Font Awesome icon to your website using HTML or built-in shortcode handlers.

特点

  1. Shortcode support. Example: For Font Awesome 5 [wpfa5s icon=""], [wpfa5r icon=""], [wpfab icon=""], and for Font Awesome 4.7+ [wpfa icon=""]
  2. Use Larger Icon: [wpfa icon="" size="2x"]. Sizes: xs, sm, lg, 2x, 3x, 5x, 7x, 10x
  3. Add Font Awesome icon in Menu with shortcode.
  4. Support shortocde in Widgets.
  5. Support post and page title.
  6. Font Awesome version 6
  7. Support Font Awesome version 5.+ and 4.7.0
  8. Add Font Awesome icon from editor Toolbar button.

短码

Introduced three new shortcode for Font Awesome support.

Font Awesome v6 & v5
[wpfa5s icon=”home”] for Solid style.
[wpfa5r icon=”user”] for Regular style. support only in few icon.
[wpfa5b icon=”wordpress”] for Brands.

Font Awesome 4.7+
[wpfa icon=””].

Note

The fa prefix has been deprecated in version 5. The new default is the fas solid style far regular style and the fab style for brands.

WP Font Awesome plugin still support Font Awesome version 4

屏幕截图

  • 短码
  • 短码 result
  • Larger Icon
  • 菜单
  • 小工具
  • Superscript

安装

  1. Unzip the download package
  2. Upload wp-font-awesome to the /wp-content/plugins/ directory
  3. 通过WordPress的“插件”菜单激活插件

Manual Plugin Installation

  1. Download WP Font Awesome Plugin to your desktop.
  2. If downloaded as a zip archive, extract the Plugin folder to your desktop.
  3. With your FTP program, upload the Plugin folder to the wp-content/plugins folder in your WordPress directory online.
  4. Go to Plugins screen and find Content WP Font Awesome in the list.
  5. Click Activate Plugin to activate it.

常见问题

用法

Font Awesome v6 & v5

  • [wpfa5s icon="home"] or [wpfa5s icon="fa-home"] for Solid style.
  • [wpfa5r icon="user"] or [wpfa5r icon="fa-user"] for Regular style. support only in few icon.
  • [wpfa5b icon="wordpress"] or [wpfa5b icon="fa-wordpress"] for Brands.

Font Awesome 4.7+

Use the [wpfa icon="fa-home"] or [wpfa icon="home"] shotcode to add an icon.

Sizes
Sizes: xs, sm, lg, 2x, 3x, 5x, 7x, 10x.
Example: [wpfa5b icon="wordpress" size="3x"]

Color
[wpfa ….. color=”#336699″]

Superscript
[wpfa ….. sub=”yes”]

How to use shortcode in Widget title

Font Awesome v6 & v5
[wpfa5s icon=”home”] for Solid style.
[wpfa5r icon=”user”] for Regular style. support only in few icon.
[wpfa5b icon=”wordpress”] for Brands.

Font Awesome 4.7+
[wpfa icon=””].

Note: Don’t use double quotes (" ") on shortcode in Widget title.

评价

2021年1月23日
Works great (especially, if you know how HTML and CSS) and it is constantly updated to be compatible with the latest WordPress.
2018年7月22日
This even works with the default tags i.e. <i class="fas fa-stroopwafel fa-lg"></i> and it loads the fontawesome icons locally, from your own server. That's what you want because CDN's require data processing agreements and stuff like that. This is way easier, lightweight and simple. Edit: Hmm, doesn't seem to work on all my sites.. o.O
阅读所有8条评价

贡献者及开发者

“WP Font Awesome” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“WP Font Awesome”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.7.8

  • Updated FontAwesom to v6

1.7.7

  • Updated FontAwesom to v5.15

1.7.6

  • Fixed font load issue.

1.7.5

  • Add Font Awesome icon from editor Toolbar button.
  • Updated FontAwesom to v5.12

1.7.4

  • Updated FontAwesom to v5.4

1.7.3

  • Fixed fonts loading issue

1.7.2

  • Updated FontAwesom to v5.2.0

1.7.1

  • Added Superscript option.

1.7

  • Added color option

1.6

  • Updated Font Awesome to v5.0.10
  • Introduced 3 additional shortcode for Font Awesome 5+
  • Still support Font Awesome v4

1.5

  • Updated Font Awesome to v4.7.0

1.4

  • Bug fixes.

1.3

  • Added Larger Icon option.
  • Updated Font Awesome to v4.6.0

1.2

  • Added font icon support in post and page title.

1.1

  • Updated Font Awesome to v4.5.0
  • 20 New Icons in Font Awesome v4.5

1.0

  • First Release