Skip to content

Instantly share code, notes, and snippets.

@Edwardtonnn Edwardtonnn/custom.js
Last active Mar 28, 2019

Embed
What would you like to do?
enqueue scripts
(function($) {
// $ Works! You can test it with next line if you like
console.log("Custom JS Running");
})( jQuery );
<?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
You can’t perform that action at this time.