Skip to content

Instantly share code, notes, and snippets.

@JohnBunka
Created March 20, 2019 20:24
Show Gist options
  • Save JohnBunka/84a1d16fbb34619f48c9206922f3d91d to your computer and use it in GitHub Desktop.
Save JohnBunka/84a1d16fbb34619f48c9206922f3d91d to your computer and use it in GitHub Desktop.
Link Font Awesome from hosted CDN
//enqueues our external font awesome stylesheet
function enqueue_our_required_stylesheets(){
wp_enqueue_style('font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/5.7.2/css/font-awesome.min.css');
}
add_action('wp_enqueue_scripts','enqueue_our_required_stylesheets');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment