Last active
March 28, 2019 20:32
-
-
Save Edwardtonnn/40a0979807ff7b2f7e81341638034666 to your computer and use it in GitHub Desktop.
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
(function($) { | |
// $ Works! You can test it with next line if you like | |
console.log("Custom JS Running"); | |
})( jQuery ); |
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 | |
wp_enqueue_script( | |
'custom-js', | |
get_stylesheet_directory_uri() . '/js/custom.js', | |
array('jquery'), | |
false, | |
'all' | |
); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment