Last active
March 8, 2017 03:51
-
-
Save media317/5b7aa0787997f69b034c53497e46c7b1 to your computer and use it in GitHub Desktop.
FAW Enqueue script in functions.php of 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
//* Enqueue Scripts | |
add_action( 'wp_enqueue_scripts', 'load_toggle_javascript' ); | |
function load_toggle_javascript() { | |
wp_enqueue_style( 'dashicons' ); | |
wp_enqueue_script( 'toggle', get_stylesheet_directory_uri() . '/js/toggle.js', array( 'jquery' ), '1.0.0' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment