WordPress.org

Ready to get started?Download WordPress

Forums

Meteor Slides
[Meteor Slides] Conflict with custom jquery (6 posts)

  1. monikos
    Member
    Posted 1 year ago #

    Hello, i have using jquery, loaded on the header, from a theme.
    If i removed it from the header, the meteor start to work. But i need it in the header. What i can do in this case? How to make the jquery loading to be proper for the custom script and the meteor?

    <script language="javascript" type="text/javascript" src="/wp-includes/js/jquery/jquery-1.3.2.min.js"></script>

    I think, is there solution for all this jquery loading conflict, cause it is not just for Meteor slide, for other plugins too.
    Thanks

    http://wordpress.org/extend/plugins/meteor-slides/

  2. Josh Leuze
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, I would fix your theme to properly enqueue the copy of jQuery that is built into WordPress, just like plugins do and then there shouldn't be a conflict.

    What theme are you using, can you post a link to the site you're working on?

  3. monikos
    Member
    Posted 1 year ago #

    Hello
    i am using Weaver 2 theme.
    I try to put this code into the html header:

    wp_enqueue_script('jquery', WP_CONTENT_URL . 'wp-includes/js/jquery/jquery-1.3.2.min.js');

    but nothing happened.

  4. monikos
    Member
    Posted 1 year ago #

    i use a custom script placed in : /wp-includes/js/jquery/mycript.js
    It use old version of jquery 1.3.2 and it doesnt work. If i call in the header with link this old version it works, but make conflict with the current.
    I read about http://codex.wordpress.org/Function_Reference/wp_enqueue_script
    But i never used it before and cannot make it work.

    I try to put this code in the header:
    <?php wp_enqueue_script("jquery"); ?>
    <?php wp_head(); ?>

    But still dont work.

  5. monikos
    Member
    Posted 1 year ago #

    Finaly - i tested the code again, out of the WP. In pure html. And guess what - the script work with the 1.8.3 version.
    So, why it doesnt work in WP, as jquery is loaded from the core?
    If i make reference in the header with the same jquery, the script work, the plugins dont...
    What i am making wrong...

  6. Josh Leuze
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, Weaver and Meteor Slides should both be loading jQuery, so you shouldn't need to edit the theme to change anything with jQuery. You should be able to get this working by tweaking the script or changing where that is loading.

    Can you post a link to the site you're working on? What script are you having problems with?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.