Skip to content

Instantly share code, notes, and snippets.

@dannydickson
Created January 21, 2017 18:32
Show Gist options
  • Save dannydickson/4ad0661e152d9fe87d16326f02a09b9e to your computer and use it in GitHub Desktop.
Save dannydickson/4ad0661e152d9fe87d16326f02a09b9e to your computer and use it in GitHub Desktop.
Import Font Awesome Latest Into WordPress
// Load Font Awesome
add_action( 'wp_enqueue_scripts', 'enqueue_font_awesome' );
function enqueue_font_awesome() {
wp_enqueue_style( 'font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css' );
}
@dannydickson
Copy link
Author

Most themes are already enqueing other scripts/styles, so for simplicity you could copy just line 5 from this gist into the pre-existing enqueue function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment