Wordpress jQuery Multiple Uncaught TypeErrors

I've checked my Wordpress site and I think I have some conflicting plugins or something going on that's preventing some scripts from running. Here are the errors from the console,

  • Uncaught TypeError: jQuery(...).superslides is not a function

  • Uncaught TypeError: jQuery(...).doubleTapToGo is not a function

  • Uncaught TypeError: jQuery(...).flexslider is not a function

  • Here's the individual code for each error.

    Uncaught TypeError: jQuery(...).superslides is not a function

    jQuery('.max-hero').superslides({
          animation: 'fade'
        });
    

    Uncaught TypeError: jQuery(...).doubleTapToGo is not a function

    jQuery(document).ready(function($){
    var deviceAgent = navigator.userAgent.toLowerCase();
    var agentID = deviceAgent.match(/(iphone|ipod|ipad)/);
    if (agentID) {
    
        var width = jQuery(window).width();
    if (width > 768) {
        if(jQuery( '#nav li:has(ul)' ).length)
        {
            jQuery( '#nav li:has(ul)' ).doubleTapToGo();
        }
    }
    
    }
    else {
    jQuery( '#nav li:has(ul)' ).doubleTapToGo();
    }
    });
    

    Uncaught TypeError: jQuery(...).flexslider is not a function

    jQuery(window).load(function() {
        jQuery('.flexslider').flexslider();
      });
    

    EDIT: I fixed the problem, after seeing that the an html target for page jumping was interfering with jQuery in console, I deleted that and all scripts are working fine.

    链接地址: http://www.djcxy.com/p/63196.html

    上一篇: 如何从头开始编写递归下降解析器?

    下一篇: WordPress的jQuery多个未捕获的类型错误