• Resolved lukeradl

    (@lukeradl)


    = I installed Meteor Slides, and now my theme or plugin’s jQuery goodies are broken! =

    Your theme or plugin is probably loading an extra copy of jQuery from the theme or plugin, or a third party server. This is unnecessary because WordPress already uses jQuery and it is included in the WordPress install. Meteor Slides loads the version that is within WordPress, to fix this, change your theme or plugin to use the copy of jQuery that comes with WordPress, like this <?php wp_enqueue_script("jquery"); ?>.

    This happened and I’m not really sure how to fix it. I’m using quovolver to rotate testimonials with the methods outlined on this site: http://bit.ly/duLywc

    -Quovolver code-
    In functions.php I’ve added:

    if (is_admin()) {
    }
    else {
    	wp_deregister_script('jquery');
    	wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"), false, '1.3.2');
    	wp_enqueue_script('jquery');
    }

    This is in my head tag:

    <script type="text/javascript" src="http://ehub23.webhostinghub.com/~theatt8/content/wp-content/plugins/quovolver_v1.0/jquery.quovolver.js"></script>
    
    <script type="text/javascript">
    $(document).ready(function(){
    var quovolver_jQuery = jQuery.noConflict();
    quovolver_jQuery('div.quovolver').quovolver(500, 10000);
    });
    </script>

    Any help would be hugely appreciated!

    Site is here: http://ehub23.webhostinghub.com/~theatt8/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Josh Leuze

    (@jleuze)

    Hi, since jQuery is already being loaded, you shouldn’t need to do it again, I would try just removing this part:

    if (is_admin()) {
    }
    else {
    	wp_deregister_script('jquery');
    	wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"), false, '1.3.2');
    	wp_enqueue_script('jquery');
    }
    Thread Starter lukeradl

    (@lukeradl)

    Thanks, I tried that and it still didn’t work. I ended up going with a plugin for the quotes that doesn’t create conflicts and does roughly the same thing. Digging Meteor Slides.

    Plugin Author Josh Leuze

    (@jleuze)

    Cool, good to hear you got it figured out!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘jQuery conflict’ is closed to new replies.