WordPress.org

Ready to get started?Download WordPress

Forums

WP Nivo Slider
[resolved] A Quick Fix (2 posts)

  1. pserafini
    Member
    Posted 2 years ago #

    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.

    http://wordpress.org/extend/plugins/wp-nivo-slider/

  2. pserafini
    Member
    Posted 2 years ago #

    But I still think you'd rather implement a NivoSlider by yourself instead of relying on such a bad plugin.

    Here's a really simple tutorial about it :

    http://nielsencreativemedia.com/blog/using-nivo-slider-in-wordpress-cont

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic