I'm trying to add some Jquery scripts to my Wordpress site, and unfortunately I cannot link you to the site as I'm working locally. It seems that the Jquery file is being loaded, as well as the fancyboxStyle I created, but all of the other js scripts aren't loading.
functions.php
function my_init() {
if (!is_admin()) {
wp_deregister_script('jquery');
wp_register_script( 'jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js');
wp_enqueue_script('jquery');
// load JS files from my theme
wp_enqueue_script('easing', get_bloginfo('template_url') . '/js/jquery.easing-1.3.pack.js', array('jquery'), '1.0', true, $in_footer);
wp_enqueue_script('mouseWheel', get_bloginfo('template_url') . '/js/jquery.mousewheel-3.0.4.pack.js', array('jquery'), '1.0', true, $in_footer);
wp_register_style( 'fancyboxStyle', get_bloginfo('template_url') . '/css/fancybox.css', true);
wp_enqueue_style( 'fancyboxStyle' );
wp_enqueue_script('fancybox', get_bloginfo('template_url') . '/js/jquery.fancybox-1.3.4.pack.js', array('jquery'), '1.0', true, $in_footer);
wp_enqueue_script('fancyboxControls', get_bloginfo('template_url') . '/js/fancybox/fancyboxControls.js', array('jquery'), '1.0', true, $in_footer);
}
}
add_action('init', 'my_init');
The files are all in the correct location, but the scripts do not load within the footer (or header for that matter).
Any help would be greatly appreciated.
Thanks,
Ashley
@Romanso I get a notification from WPSE. I've added a comment below.