Unexpected script loading order
Simple Fix The reason why your code does not work is because the third parameter of the wp_enqueue_script() function is expecting an array, not a string. Just replace ‘footer-js’ with array(‘footer-js’) and it will work: function tallulah_scripts() { wp_enqueue_script( ‘header-js’, get_template_directory_uri() . ‘/js/header.min.js’, null, ‘1.0’, false ); wp_deregister_script(‘jquery’); wp_enqueue_script( ‘footer-js’, get_template_directory_uri() . ‘/js/footer.min.js’, null, ‘1.0’, … Read more