KingSize Theme and vSlider jQuery Conflict
-
WordPress v.3.2.1
vSlider v4.1
Theme: KingSize (ref: https://themeforest.net/item/king-size-fullscreen-background-template-/148767)
URL” https://www.ryanrobertsonracing.com/New-Site/ryan-robertson/I am attempting to use vSlider as a widget in a build using the KingSize Theme. vSlider is not rotating. I have tested it in the same build using the TwentyTen Theme and it works correctly.
After activating the plugin, I am seeing this error:
Uncaught TypeError: Property ‘$’ of object [object DOMWindow] is not a functionAfter some more trouble shooting and Googling, I believe the issue lies in the line wp_deregister_script( ‘jquery’ ); in the themes function.php code below…
<!—————START—————->
function my_init_method() {
if (!is_admin()) {
wp_deregister_script( ‘jquery’ );
wp_register_script( ‘jquery’, ‘https://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js’);
wp_enqueue_script( ‘jquery’ );
wp_register_script(“cufon”, get_bloginfo(template_directory) . “/js/cufon-yui.js”);
wp_enqueue_script(‘cufon’);
wp_register_script(‘PT_Sans’, get_bloginfo(template_directory) . “/js/PT_Sans.font.js”);
wp_enqueue_script(‘PT_Sans’);
wp_register_script(‘PT_Sans_Narrow’, get_bloginfo(template_directory) . “/js/PT_Sans_Narrow.font.js”);
wp_enqueue_script(‘PT_Sans_Narrow’);
wp_register_script(‘custom’, get_bloginfo(template_directory) . “/js/custom.js”);
wp_enqueue_script(‘custom’);
wp_register_script(‘tipsy’, get_bloginfo(template_directory) . “/js/jquery.tipsy.js”);
wp_enqueue_script(‘tipsy’);
}
}
add_action(‘init’, ‘my_init_method’);
<!——————–END—————–>Whenever I delete that line, vSlider works, but of course it causes problems with the theme. It may have something to do with both calling to the default jQuery shortcut of $…but I am no expert in this, so that is only a guess.
Any ideas on a work around?
TIA
Kevin
- The topic ‘KingSize Theme and vSlider jQuery Conflict’ is closed to new replies.