Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'wp_enqueue_scripts', 'custom_scripts' );
- function custom_scripts() {
- //JS
- wp_register_script('custom-js', get_stylesheet_directory_uri() . "/js/custom.js", array('jquery'), false, false);
- wp_enqueue_script('custom-js');
- }
- (function($) {
- // $ Works! You can test it with next line if you like
- // console.log($);
- })( jQuery );
Add Comment
Please, Sign In to add comment