MickeyKay / better-font-awesome

[WordPress] A WordPress plugin that allows you to easily integrate the latest version of FontAwesome.
GNU General Public License v2.0
10 stars 7 forks source link

Build Status Downloads License: GPL v3

Better Font Awesome

Contributors: mcguive7, aaronbmm, mightyminnow
Tags: better, font, awesome, icon, icons, bootstrap, fontstrap, cdn, shortcode
Donate link: https://mickeykay.me
Requires at least: 3.0
Tested up to: 6.1.1
Stable tag: 2.0.4
License: GPLv2+
License URI: http://www.gnu.org/licenses/gpl-2.0.html

The Better Font Awesome plugin for WordPress. Shortcodes, HTML, TinyMCE, various Font Awesome versions, backwards compatibility, CDN speeds, and more.

Description

Build Status

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

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

Credits

Many thanks to the following plugins and their authors:

And many thanks to the following folks who helped with testing and QA:

Installation

This section describes how to install the plugin and get it working.

  1. Upload Better Font Awesome to the /wp-content/plugins/ directory.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. That's it! Now you can use 3 different methods (shortcode, HTML, TinyMCE) to insert Font Awesome icons, all outlined in the Description section.

Frequently Asked Questions

How is this plugin different from other Font Awesome plugins?

This plugin is unique in that it automatically pulls in all available versions of Font Awesome, meaning you never have to wait for the plugin developer to add the latest version. Furthermore, Better Font Awesome is designed to work with a wide variety of shortcode formats used by other Font Awesome plugins - this means that you can easily switch to Better Font Awesome (if, for example, you need to include icons from the most recent version of Font Awesome, which isn't always available with other plugins), and they will still work.

Do I have to install any font files?

Nope. Better Font Awesome automatically pulls in everything you need, and it does it from the lightning-fast jsDelivr CDN.

What happens if I have another plugin/theme that uses Font Awesome?

Better Font Awesome does it's best to load after any existing Font Awesome CSS, which can minimize conflicts. If you are experiencing any unexpected behavior resulting from plugin/theme conflicts, you can try checking the box to "Remove existing Font Awesome styles" in under Settings → Better Font Awesome.

Screenshots

  1. The icon shortcode dropdown selector
  2. Better Font Awesome settings, accessed via Settings → Better Font Awesome

Changelog

2.0.4

2.0.3

2.0.2

2.0.1

2.0.0

1.7.6

1.7.5

(BAD BUILD)

1.7.4

1.7.3

1.7.2

1.7.1

1.7.0

Upgrade Notice

2.0.4

2.0.3

2.0.2

2.0.1

2.0.0

1.7.6

1.7.5

(BAD BUILD)

1.7.4

1.7.3

1.7.2

1.7.1

1.7.0