php - 过时的 WordPress 主题选项;jQuery 错误
问题描述
我正在使用过时的 WordPress 主题;自 2015 年左右以来,开发人员一直没有提供更新。
直到昨天它工作得很好。现在我的下拉菜单不起作用,我的幻灯片也不起作用。在控制台中查看,在我看来存在 jquery 错误。这是我正在处理的页面:http ://www.cedartreeschool.org/
这些是我看到的错误:
Uncaught TypeError: Cannot read property 'version' of undefined
at n.fn.init.$.fn.preloader (custom.js?ver=3.8:383)
at (index):754
Uncaught TypeError: Cannot read property 'msie' of undefined
at (index):754
Uncaught TypeError: jQuery(...).live is not a function
at HTMLDocument.<anonymous> (custom.js?ver=3.8:32)
at i (jquery.js?ver=1.12.4-wp:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
at Function.ready (jquery.js?ver=1.12.4-wp:2)
at HTMLDocument.J (jquery.js?ver=1.12.4-wp:2)
有什么选项可以让我再次使用这个主题,还是需要更新到更新的主题?谢谢你的帮助。
解决方案
在高级 WordPress Facebook 组中发现 jquery-migrate 在 WP 5.5 中被删除。使用这个插件解决了我的问题https://wordpress.org/plugins/enable-jquery-migrate-helper/#utm_medium=referral&utm_source=facebook.com&utm_content=social
推荐阅读
- r - 对于 rms 上的受限三次样条,如何在每次连续增加几率时找到 X 的值?
- android-jetpack-compose - AnimatedVisibility 打破了 Jetpack Compose 中 ConstraintLayout 中的约束
- hybris - 如何自定义 ItemModelCloneCreator.class 以获取所有属性,例如价格和税收以及变体产品和属性
- javascript - 如何在 Truffle 中初始化迁移合同?
- typescript - 如何将任何类型的属性转换为 TypeScript 中的可调用对象?
- haskell - 有没有办法隐藏gcd?
- unit-testing - 如何在 Flask 中对路由进行单元测试
- julia - Julia 幂运算符 ^ 返回与 python pow() 不同的值
- android - 带有注入的匕首视图模型中的屏幕旋转问题
- swift - 如何将数据显示到表格视图 Swift