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.