Last active
November 11, 2016 16:34
-
-
Save omniacode/060e43fa3a0d9b919c657e3ab7bff605 to your computer and use it in GitHub Desktop.
WP Child Theme Specific JS
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
// Load Child Theme Specific JS | |
function load_child_js_files() { | |
wp_register_script('filename', get_stylesheet_directory_uri() . '/js/filename.js', array('jquery'), '', true); | |
wp_enqueue_script('filename'); | |
} | |
add_action('wp_enqueue_scripts', 'load_child_js_files', 99); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment