跳到内容

Shortcodes for Font Awesome

v1.5.1

joho68 · 2020年9月3日 上架

Generate inline HTML with Font Awesome icon libray by using shortcodes.

正在使用
10+
评分
暂无
累计下载
4,649
最近更新
2026年4月16日
需要 WordPress 5.5.0+已测试到 6.9.12PHP 7.2+

This WordPress shortcode plugin generates inline HTML for the Font Awesome icon libray.

You can use any icon code supported by Font Awesome 7.

A few notes about this plugin:

  • You may choose to host your Font Awesome 7 files locally (default)
  • You may choose to use the Font Awesome CDN
  • You may choose to specify a custom URL for your Font Awesome files
  • You may choose to disable Font Awesome assets if you include them elsewhere
  • This plugin may create entries in your PHP error log (if active)
  • This plugin contains no tracking code and does not process or collect any information about the visitor
  • Tested with WordPress 5.5-6.9
  • Tested with PHP 7.x and PHP 8.x
  • See css/fontawesome/LICENSE.TXT for Font Awesome licensing details

Configuration

Decide if you want to use the included Font Awesome assets, they are the time of this writing at version 7.2. If you want to use another version, you can replace the included assets, use another URL for the CSS and webfont assets, or specify a Font Awesome CDN kit URL.

Usage

There is one shortcode available with this plugin:

[scfa][/scfa]

General format

This is intended as a quick reference for the shortcode. For a complete list of Font Awesome classes, please see fontawesome.com. Some icon styles may only be available with a Pro license. You can (obviously) specify everything class related in the class=”” parameter if that is more convenient for you.

Generate element with icon and default (icon) style:

[scfa icon="address-book"][/scfa]

Generate element with the specified style and icon:

[scfa icon="far address-book"][/scfa]

Generate element with the specified style and icon and size:

[scfa icon="far address-book" size="5x"][/scfa]

There are more examples in the SCFA plugin settings screen.

Credits

The Shortcodes for Font Awesome Plugin was written by Joaquim Homrighausen while converting caffeine into code.

Shortcodes for Font Awesome is sponsored by WebbPlatsen i Sverige AB, Sweden.

This plugin can also be downloaded from code.webbplatsen.net and GitHub

Font Awesome

Stay safe!

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums