Skip to content

Instantly share code, notes, and snippets.

@WebEndevSnippets
Created October 27, 2013 22:37
Show Gist options
  • Save WebEndevSnippets/7188764 to your computer and use it in GitHub Desktop.
Save WebEndevSnippets/7188764 to your computer and use it in GitHub Desktop.
WordPress: Enqueue Font Awesome Stylesheet from MaxCDN
add_action( 'wp_enqueue_scripts', 'webendev_load_font_awesome', 99 );
/**
* Enqueue Font Awesome Stylesheet from MaxCDN
*
*/
function webendev_load_font_awesome() {
if ( ! is_admin() ) {
wp_enqueue_style( 'font-awesome', '//netdna.bootstrapcdn.com/font-awesome/4.0.1/css/font-awesome.css', null, '4.0.1' );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment