[Plugin: WP Nivo Slider] A Quick Fix
-
Hello
Been looking for a quick fix on this simple plugin. Here’s what to do :
– Download the latest Nivo Slider jquery plugin from here :
http://nivo.dev7studios.com/pricing/– replace the file “jquery.nivo.slider.pack.js” in “Plugins/wp-nivo-slider/js” with the one in your download
– in your theme’s “functions.php”, add these lines that will ensure your whole wordpress site to use the latest JQuery version :
if( !is_admin()){ wp_deregister_script('jquery'); wp_register_script('jquery',("http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"), false, ''); wp_enqueue_script('jquery'); }– Open “Plugins/wp-nivo-slider/wp-nivo-slider.php” and find
wp_enqueue_script('nivo_slider', WP_PLUGIN_URL . '/wp-nivo-slider/js/jquery.nivo.slider.pack.js', array('jquery'), '2.3' );Replace the last argument with the proper version of the NivoSlider plugin (in this case from 2.3 to 2.6)
wp_enqueue_script('nivo_slider', WP_PLUGIN_URL . '/wp-nivo-slider/js/jquery.nivo.slider.pack.js', array('jquery'), '2.6' );– Just to make sure JQuery is ok on your wordpress install, place this line :
<?php wp_enqueue_script("jquery"); ?>just before<?php wp_head(); ?>in your theme’s “header.php”– Everything should run fine now. Enjoy.
The topic ‘[Plugin: WP Nivo Slider] A Quick Fix’ is closed to new replies.