enqueuing Js in the footer
-
Hi there,
I am trying to add a JS file to the end of the page just before the closing body tag. I have read that I can set true in my enqueue line to set it in the footer, but when I set to true, is still adds it way up the page and not at the end.
This is the line I am using:
wp_enqueue_script( 'myscript', get_bloginfo('template_directory') . '/js/scripts.js', array( 'jquery' ), '', true );
Can anyone tell me what I have done wrong?
Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘enqueuing Js in the footer’ is closed to new replies.