Title: Trying to use wp_enqueue_script to include js script..
Last modified: August 20, 2016

---

# Trying to use wp_enqueue_script to include js script..

 *  [Buffmin2](https://wordpress.org/support/users/buffmin2/)
 * (@buffmin2)
 * [14 years ago](https://wordpress.org/support/topic/trying-to-use-wp_enqueue_script-to-include-js-script/)
 * I am trying to use a Jquery navbar in my WP.
 * Understanding that I should be **including my .js scripts** from within the functions.
   php using the **wp_enqueue** function, I have tried it but must have something
   wrong.
 * I need to call 2 js scripts. They are both placed in my child theme.
 * Could someone please tell me what I am doing wrong?
    Here is the beginning of
   my functions.php file (with my 2 calls). Thank you.
 *     ```
       <?php
   
       wp_enqueue_script('scripts',get_bloginfo("stylesheet_directory")."/example.js", array('jquery'),time());
       wp_enqueue_script('scripts',get_bloginfo("stylesheet_directory")."/jquery.color-RGBa-patch.js", array('jquery'),time());
   
       /**
        * TwentyTen functions and definitions
       ```
   

The topic ‘Trying to use wp_enqueue_script to include js script..’ is closed to 
new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [Buffmin2](https://wordpress.org/support/users/buffmin2/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/trying-to-use-wp_enqueue_script-to-include-js-script/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
