Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Enqueue WordPress
// All scripts to load here
function load_scripts() {
// Register script
wp_register_script('scrollup', get_template_directory_uri() . '/path/to/scripts/jquery.scrollUp.min.js', array('jquery'), '2.3.3', true );
// Enqueue it
// Add action to load scripts enqued in load_scripts() function
add_action('wp_enqueue_scripts', 'load_scripts');
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.