Enqueue Script in functions.php

function my_jqueryinit() {
    if (!is_admin()) {

        // last boolean value is 'load in footer?'
	wp_enqueue_script('give-it-a-name', get_stylesheet_directory_uri() . '/scripts/script.js', array('identify-dependencies'), '0.6.2', true);

    }
}
add_action('init', 'my_jqueryinit');

Should be first lines in functions.php

Dave Winter focuses in WordPress UI Design and WordPress Plugin Development (some have labelled him a fanatic) but has hands in many other projects, including photography and music. He's never far from a computer... or an iPad (for testing purposes, of course). If you've been to a WordCamp in Southern California, he probably already knows who you are (or maybe not - he's terrible with names). Dave currently teaches courses at California State University, Long Beach alongside his small business at dauid.us (and his students think he's pretty boss).
© 2008-2020, dauid.us