【问题标题】:make responsive menu in wordpress在 wordpress 中制作响应式菜单
【发布时间】:2015-06-06 23:43:42
【问题描述】:
【问题讨论】:
标签:
html
css
wordpress-theming
wordpress
【解决方案1】:
如果您想要一个专门用于响应式设计的菜单,您可以使用 jquery 插件,例如 meanThemes 中的 mean menu。
https://github.com/meanthemes/meanMenu
只需将 css 文件添加到您的主题(在标题中)
<link rel="stylesheet" href="meanmenu.css" media="all" />
在页脚中添加 jquery
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="jquery.meanmenu.js"></script>
并使用(也在页脚中)将菜单初始化为容器
jQuery(document).ready(function () {
jQuery('header nav').meanmenu();
});
在您的文档中。准备就绪