Title: adding script on in function wp_enqueue
Last modified: August 24, 2016

---

# adding script on in function wp_enqueue

 *  [johnyc](https://wordpress.org/support/users/johnyc/)
 * (@johnyc)
 * [11 years ago](https://wordpress.org/support/topic/adding-script-on-in-function-wp_enqueue/)
 * Hello,
    I want to use [unslider.com](http://www.unslider.com) simple image slider
   without installing any plugins. I am ready to edit php/css files of my theme 
   but I dont want to install any plugins.
 * According to the instructions on the homepage of UnSlider I need to include unslider.
   min.js & jquery files in my header. Also I need to add a
 *     ```
       <script> $(function() {
           $('.banner').unslider();
       }); </script>
       ```
   
 * (maybe somewhere in footer.php.
 * What is the simple way to achieve image sliding effect using unslider? I tried
   to edit function.php files of my theme to include (wp_enqueue) the min.js but
   I messed up something.
 * How you would do it (without installing its plugin that is).
    Thank you.

Viewing 1 replies (of 1 total)

 *  Thread Starter [johnyc](https://wordpress.org/support/users/johnyc/)
 * (@johnyc)
 * [11 years ago](https://wordpress.org/support/topic/adding-script-on-in-function-wp_enqueue/#post-5983365)
 * Well, there’re numerous plugins for image slider. But What I want to achieve 
   is to have image slider functionality across multisite at theme level, I would
   not need to install & activate the plugin for each sub-site.
    Therefore I would
   make edits at common theme rather than installing a pluing.
 * Thank you.

Viewing 1 replies (of 1 total)

The topic ‘adding script on in function wp_enqueue’ is closed to new replies.

## Tags

 * [function.php](https://wordpress.org/support/topic-tag/function-php/)
 * [js](https://wordpress.org/support/topic-tag/js/)
 * [wp_enqueue](https://wordpress.org/support/topic-tag/wp_enqueue/)

 * 1 reply
 * 1 participant
 * Last reply from: [johnyc](https://wordpress.org/support/users/johnyc/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/adding-script-on-in-function-wp_enqueue/#post-5983365)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
