Last active
December 14, 2015 12:48
-
-
Save alwayscoding/5088970 to your computer and use it in GitHub Desktop.
WORDPRESS: JS REGISTER/ENQUE
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
function XX_scripts_with_jquery() { | |
wp_register_script( 'XX-script',get_template_directory_uri().'/bootstrap/js/bootstrap.js',array('jquery')); | |
wp_enqueue_script( 'XX-script' ); | |
} | |
add_action('wp_enqueue_scripts','XX_scripts_with_jquery'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment