Title: Enqueue javascript and jQuery
Last modified: August 22, 2016

---

# Enqueue javascript and jQuery

 *  [prophecym](https://wordpress.org/support/users/prophecym/)
 * (@prophecym)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/enqueue-javascript-and-jquery/)
 * I am trying to use this [ buttons UI](http://unicorn-ui.com/buttons/) in my template.
   However, it requires its own .js and jQuery library. I think I successfully managed
   to enqueue the .js in the functions.php using
 *     ```
       wp_enqueue_script( 'scripts', get_template_directory_uri() . '/js/jquery-2.1.3.min.js', array( 'jquery' ),'', false);
       wp_enqueue_script( 'scripts', get_template_directory_uri() . '/js/buttons.js', array( 'jquery' ),'', false);
       ```
   
 * However, I still can’t get these dropdown buttons to work. What am I doing wrong?

Viewing 16 replies (of 16 total)

[←](https://wordpress.org/support/topic/enqueue-javascript-and-jquery/?output_format=md)
[1](https://wordpress.org/support/topic/enqueue-javascript-and-jquery/?output_format=md)
2

 *  Thread Starter [prophecym](https://wordpress.org/support/users/prophecym/)
 * (@prophecym)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/enqueue-javascript-and-jquery/page/2/#post-5661621)
 * Still no luck with the .js code. I tried both changing the handle name, and the
   file name. As a side note, thinking maybe the other registered scripts have something
   to do with this, I commented out all of them except the unicorn-buttons.js. That
   didn’t work either.

Viewing 16 replies (of 16 total)

[←](https://wordpress.org/support/topic/enqueue-javascript-and-jquery/?output_format=md)
[1](https://wordpress.org/support/topic/enqueue-javascript-and-jquery/?output_format=md)
2

The topic ‘Enqueue javascript and jQuery’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/hueman/3.7.27/screenshot.png)
 * Hueman
 * [Support Threads](https://wordpress.org/support/theme/hueman/)
 * [Active Topics](https://wordpress.org/support/theme/hueman/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/hueman/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/hueman/reviews/)

## Tags

 * [buttons](https://wordpress.org/support/topic-tag/buttons/)
 * [dropdown](https://wordpress.org/support/topic-tag/dropdown/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [jquery](https://wordpress.org/support/topic-tag/jquery/)

 * 16 replies
 * 3 participants
 * Last reply from: [prophecym](https://wordpress.org/support/users/prophecym/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/enqueue-javascript-and-jquery/page/2/#post-5661621)
 * Status: not resolved