Created
February 2, 2018 19:39
-
-
Save ashleycam3ron/c12776045eeaf5a5761f43c20e912fdb to your computer and use it in GitHub Desktop.
Register and Enqueue Font Awesome in WordPress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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