Style Icons with WordPress
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:
Here are attributes that can be passed through the shortcode:
Attribute | How you can use it |
---|---|
class | Either your own or Font Awesome-specific CSS classes |
style | For your own custom CSS |
title , aria-hidden , aria-labelledby , role | Accessibility helpers |
Icon name and style prefix | Basic Font Awesome attributes |