Enqueueing custom javascript file in Ollie Child theme
-
Having a hard time enqueueing a JavaScript file into my Ollie Child theme, tying to do it basically the same way I’ve been doing it for years and I cannot get it to work! This is in the Ollie Functions file…
// add custom scripts this breaks it function ollie_enqueue_scripts() { wp_enqueue_script('custom-script', get_stylesheet_directory_uri() . '/js/custom-script.js', array(), false, true); } add_action('wp_enqueue_scripts', 'ollie_enqueue_scripts', 999);
I tried registering it first and that didn’t work either… has to be something dumb I’m missing! Any help would be great!
Thank you!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Enqueueing custom javascript file in Ollie Child theme’ is closed to new replies.