-
-
Save omniamike/2ba28be331bc11fdf5b4c084523aee8f 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_javascript_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_javascript_files'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment