<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 7 年前。
<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 7 年前。
我正在尝试找出升级到 WP 3.9.1 后子菜单未出现的 WordPress 网站上的问题。该站点 -- 可访问 here -- 正在使用 Zeus 主题 (v. 1.1.0),子菜单行为似乎由“jqueryslidemenu.js”处理。
升级 WordPress 后,加载的 jQuery 版本更改为 1.11.0,看来这个主题是使用较旧的 jQuery 版本开发的,所以我想知道这是否是问题的根源。有趣的是,在 Firebug 的帮助下,我可以看到子菜单是在 <ul class="submenu">
中创建的。 -- 比如说将鼠标悬停在主导航菜单中的“关于”上——尽管它们只是不可见。因此,我希望通过 JS/CSS 编辑有一个简单的解决方案。
最佳答案
您的主页出现 JS 错误,您的 Google Analytics(分析)代码中存在段落标记。您也可以尝试用 jQuery 替换 jqueryslidemenu.js 中文档就绪函数中的 $ ,如此答案中所述: TypeError: 'undefined' is not a function (evaluating '$(document)')
有关 jQuery noConflict 模式的更多信息,请访问:codex.wordpress.org/Function_Reference/... 如果需要,您可以取消注册 jQuery 的默认版本并注册/排队您自己的版本。 http://codex.wordpress.org/Function_Reference/wp_deregister_script http://codex.wordpress.org/Function_Reference/wp_register_script http://codex.wordpress.org/Function_Reference/wp_enqueue_script
关于jquery - 升级后子菜单未出现在 WordPress 网站上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23749379/