wp_enqueuescript won’t load in footer even with true value set?

You need top put it into an actual function and then call the function via an action, but to answer your question.

wp_register_script('easy-slider',get_bloginfo('template_directory') . "/js/easySlider1.7.js", true);

Your setting the third parameter to true but that param is for the $deps (dependency). The footer is the 5th parameter called $in_footer.

So it should be:

 wp_register_script('easy-slider',get_bloginfo('template_directory') . "/js/easySlider1.7.js", '', '', true);

Reference:

 wp_register_script( $handle, $src, $deps, $ver, $in_footer );

Leave a Comment