点击菜单后汉堡菜单不会折叠

时间:2018-02-14 14:32:33

标签: javascript jquery

有人可以在手机上查看此网站http://dev5.99medialabtest2.com/buck/,并告诉我为什么汉堡包菜单在点击菜单时没有折叠回来吗?

1 个答案:

答案 0 :(得分:0)

我查看并在 custom.js 文件中看到此错误有两个错误行5和第32行。检查这些错误。

jquery.min.js:2 Uncaught TypeError: e.indexOf is not a function
at w.fn.init.w.fn.load (jquery.min.js:2)
at custom.js:5
at custom.js:32

例如在custom.js第5行;你有另一个"use strict";如果你解决了这些错误,你的问题就会消失,汉堡包图标会变成x并转回吧

<强>更新

问题:

  1. 您的主题上传bootstrap.js两次
  2. 您在custom.js jquery.min.js:2 Uncaught TypeError: e.indexOf is not a function at w.fn.init.w.fn.load (jquery.min.js:2) at custom.js:18 at custom.js:22
  3. 中仍然有错误
  4. 您在索引行355
  5. 中放置了错误的标记

    如果从页脚中删除这些js文件。  custom.js<script src="http://dev5.99medialabtest2.com/buck/wp-content/themes/Buck%20Blue/assets/js/bootstrap.min.js"></script>您的问题已经解决。

    或尝试删除此<script type="text/javascript" src="http://dev5.99medialabtest2.com/buck/wp-content/plugins/faq-responsive/assets/js/accordion.js?ver=4.9.4"></script>(常见问题解答插件)

相关问题