Title: Script not working
Last modified: August 21, 2016

---

# Script not working

 *  [emaarkhan](https://wordpress.org/support/users/emaarkhan/)
 * (@emaarkhan)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/script-not-working/)
 * I been working on footer page and did some html and its controlled by jQuery.
   while i see link to js file included in page source, it is not running. this 
   is my script code,
 * > jQuery(“#demo2”).als({
   >  visible_items: 4, scrolling_items: 1, orientation: “
   > horizontal”, circular: “yes”, autoscroll: “no” });
 * and this is my functions code
 * >  function vscroll(){
   >  if(!is_admin()){ wp_register_script(‘vscroll’, get_stylesheet_directory_uri().‘/
   > js/vscroll.js’, array(‘jquery’));
   >  wp_enqueue_script(‘vscroll’);
   >  } } add_action(‘init’, ‘vscroll’);
 * am i doing something wrong?

The topic ‘Script not working’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [emaarkhan](https://wordpress.org/support/users/emaarkhan/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/script-not-working/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
