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?
The page I need help with: [log in to see the link]
- The topic ‘JS file queries’ is closed to new replies.