Enqueuing scripts in footer does not working with WordPress 3.6?
-
Hi!
I have a strange problem since I last updated WordPress to 3.6: My enqueuing method isn’t able to place my scripts in the footer.
Here’s my code (that worked good with WordPress 3.5 and previous versions):
function my_scripts_method() { wp_enqueue_script('flexslider', get_template_directory_uri().'/js/jquery.flexslider-min.js', array('jquery'), null, true); wp_enqueue_script('waypoints', get_template_directory_uri().'/js/waypoints.min.js', array('jquery'), null, true); // My functions file wp_enqueue_script('theme_functions', get_template_directory_uri().'/js/functions.js', array('jquery', 'flexslider', 'waypoints'), null, true); } add_action( 'wp_enqueue_scripts', 'my_scripts_method', 20 );
Anyone has an idea?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Enqueuing scripts in footer does not working with WordPress 3.6?’ is closed to new replies.