Loading jQuery UI in head
-
I am trying to load jquery-ui-core and jquery-ui-tabs in the head of my theme. Here is my code:
add_action( 'wp_enqueue_scripts', 'load_jquery_ui' ); function load_jquery_ui() { wp_enqueue_script( 'jquery-ui-core' ); wp_enqueue_script( 'jquery-ui-tabs' ); }
Default for wp_enqueue_script is to load the script in the head. I have tried adding it to the jquery array to no avail.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Loading jQuery UI in head’ is closed to new replies.