I'm having a major pain in the ass enqueuing some scripts for use in my theme.
It was announced that WordPress 3.3 includes the entire jQuery UI library, but I can't even get the core loaded into my theme for some reason.
This is my functions.php :
<?php
function meso_enqueue_scripts() {
//$accordion = get_template_directory_uri() . '/js/jquery.ui.accordion.js';
//$deps = array('jquery','jquery-ui-core');
wp_enqueue_script('jquery');
wp_enqueue_script('jquery-ui-core');
//wp_enqueue_script('jquery-ui-accordion');
//, $accordion, $deps);
}
add_action ( 'wp_enqueue_scripts', 'meso_enqueue_scripts');
?>
And I do call wp_head(); . I have my old accordion script commented out because 3.3 includes it natively, but now I can't even get the core to load in properly.
Anyone know what I may be doing wrong?
Thanks.