Have you set your priority number higher than others loading in the footer?
For example, here I used 999999…
add_action( 'wp_enqueue_scripts', 'cpar_enqueue_later', 999999 );
function cpar_enqueue_later() {
wp_enqueue_script( 'myscript', get_template_directory_uri() . '/js/scripts.js', array( 'jquery' ), '', true );
}
-
This reply was modified 2 years, 2 months ago by bcworkz. Reason: code format fixed