Skip to content

Instantly share code, notes, and snippets.

@ashleycam3ron
Created February 2, 2018 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashleycam3ron/c12776045eeaf5a5761f43c20e912fdb to your computer and use it in GitHub Desktop.
Save ashleycam3ron/c12776045eeaf5a5761f43c20e912fdb to your computer and use it in GitHub Desktop.
Register and Enqueue Font Awesome in WordPress
<?php
add_action('wp_enqueue_scripts', 'enqueue');
function enqueue(){
//Font Awesome
wp_register_script('font-awesome', '//use.fontawesome.com/releases/v5.0.6/js/all.js');
//enqueue scripts
wp_enqueue_script(array('jquery','font-awesome'));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment