Font Awesome has a ton of great styling tools that work hand-in-hand with our icons to make your project look its best.
With the official 4.0 release of the WordPress plugin, you can add attributes to the icon shortcodes, including CSS classes.
This means you can make your icons extra fancy with all the features that Font Awesome offers via CSS classes, like:
- Sizing your icons to be bigger or smaller
- Rotating icons to give them a different orientation
- Animating icons to create motion
- And a bunch more styling options!
Here's an example:
[icon name="yin-yang" prefix="fas" class="fa-2x fa-spin"]
Here are attributes that can be passed through the shortcode:
|Attribute||How you can use it|
| ||Either your own or Font Awesome-specific CSS classes|
| ||For your own custom CSS|
| ||Accessibility helpers|
|Icon ||Basic Font Awesome attributes|