Last active
August 29, 2015 14:16
-
-
Save epierpont/8561827fc12f602d3171 to your computer and use it in GitHub Desktop.
WP - Enqueue scripts
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 | |
// using http://codex.wordpress.org/Function_Reference/wp_enqueue_script | |
// basic enqueue script | |
add_action( 'wp_enqueue_scripts', 'load_scripts' ); | |
function load_scripts() { | |
wp_register_script( 'functions-js', get_stylesheet_directory_uri() . '/_/js/functions.js', array(), '', true ); | |
wp_enqueue_script( 'functions-js' ); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment