Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1352
    Jonathan Gunnell
    Participant

    I can’t seem to get this plugin to work on my website. I got it to work quickly and easily on another site I manage but it doesn’t seem to load properly for me on my site. I can see that it is loading the jQuery in the head and it is applying the selector, but it still doesn’t seem to work…

    I tried deactivating other plugins to see if there was a conflict but I couldn’t find one.

    I don’t know jQuery at all but I am seeing some type of error, but it’s gibberish to me. Could someone take a glance at it?

    Here is a link to a page with a picture http://jonathangunnell.com/teaching-with-maxmsp/

    Thanks.
    JG

    #1353
    Bartosz
    Keymaster

    Jonathan, your theme is deregistering a jquery version shipping with WordPress and using a very oitdated one instead that can’t handle all the functions used by our plugin and many, many other plugins as well (not mentioning WP itself).

    Fix that and it will be ok.

    #1354
    Jonathan Gunnell
    Participant

    This might be a silly question, but where would I go to do that? My header.php is not pulling in any jquery. Could it be one of my plugins? Here is the code from my header.php.

    <!DOCTYPE HTML>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset="<?php bloginfo('charset'); ?>" />
    <?php if (is_search()) { ?>
    <meta name="robots" content="noindex, nofollow" />
    <?php } ?>
    <link rel="shortcut icon" href="/favicon.ico">
    <link href="<?php bloginfo('template_directory'); ?>//dfactory-53eb.kxcdn.com/css/master.css" rel="stylesheet" type="text/css" />
    <title><?php bloginfo('name'); ?></title>
    <!--[if lt IE 9]>
    <script>
    var e = ("abbr,article,aside,audio,canvas,datalist,details," +
    "figure,footer,header,hgroup,mark,menu,meter,nav,output," +
    "progress,section,time,video").split(',');
    for (var i = 0; i < e.length; i++) {
    document.createElement(e[i]);
    }
    </script>
    <![endif]-->
    <?php wp_head(); ?>
    </head>

    #1355
    Bartosz
    Keymaster

    Sorry, we can’t help you with that. You should contact tjhe theme developer.

    #1356
    Jonathan Gunnell
    Participant

    I just found this in my functions.php


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

    That looks like the problem. Would it be best to just update that link? Do I even need this function? (Sorry, I’m as good with PHP as I am with jQuery…)

    #1357
    Jonathan Gunnell
    Participant

    Yeah. No problem. Thanks for the help.

    #1358
    Bartosz
    Keymaster

    But you found it – that’s exactly that piece of code and is’s a very bad practice.

    #1359
    Jonathan Gunnell
    Participant

    Sure is! I started my theme with a “Blank Theme” I found somewhere online to use as a shell since I’m bad with PHP. Looks like it wasn’t as “blank” as it could have been!

    Thanks again! Everything is working fine now.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.