Title: wp_enqueue_script and header.php
Last modified: August 19, 2016

---

# wp_enqueue_script and header.php

 *  [rhino18](https://wordpress.org/support/users/rhino18/)
 * (@rhino18)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/wp_enqueue_script-and-headerphp/)
 * Hello, in my header file I am trying to include jQuery UI Dialog and I am using
   wp_enqueue_script to do like so:
 *     ```
       wp_enqueue_script('jquery');
       	wp_enqueue_script('jquery-ui-core');
       	wp_enqueue_script('jquery-ui-dialog');
       	wp_enqueue_script('swfupload'); //for testing enqueue fn
       	wp_head();
       ```
   
 * However, this puts out only jquery.js and swfupload.js. I have tried enqueueing
   just jquery ui dialog with a path to the script and an array of dependencies 
   for jquery ui dialog (as according to jquery UI’s development bundle which lists
   dependencies.) That still only printed out jquery.js.
 * I tried
 *     ```
       wp_enqueue_script('jquery-ui-dialog');
       ```
   
 * by itself and it still just put out jquery.js.
 * Am I missing something?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/wp_enqueue_script-and-headerphp/#post-1781483)
 * Review [http://codex.wordpress.org/Function_Reference/wp_enqueue_script](http://codex.wordpress.org/Function_Reference/wp_enqueue_script)
 *  Thread Starter [rhino18](https://wordpress.org/support/users/rhino18/)
 * (@rhino18)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/wp_enqueue_script-and-headerphp/#post-1781493)
 * I tried moving to to functions.php and calling with with an init action as described
   but still the same results.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘wp_enqueue_script and header.php’ is closed to new replies.

## Tags

 * [wp_enqueue_script](https://wordpress.org/support/topic-tag/wp_enqueue_script/)
 * [wp_head](https://wordpress.org/support/topic-tag/wp_head/)

 * 2 replies
 * 2 participants
 * Last reply from: [rhino18](https://wordpress.org/support/users/rhino18/)
 * Last activity: [15 years, 6 months ago](https://wordpress.org/support/topic/wp_enqueue_script-and-headerphp/#post-1781493)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
