[英]How can I add 2 separate menus to the mobile version of a WordPress website? [week old, still need help]
My site has 2 separate sections each with it's own menu, I can sort the menu out no problem on desktop versions - how can I add 2 separate menus for each section on mobile versions though (is it even possible?)?我的网站有 2 个单独的部分,每个部分都有自己的菜单,我可以在桌面版本上对菜单进行分类,但我如何为移动版本的每个部分添加 2 个单独的菜单(甚至可能吗?)?
Here is my site , from a desktop you should see that clicking on 'Our Lady of the Wayside' brings you to a sections with a different menu.这是我的网站,从桌面上您应该会看到,单击“路边的圣母”会将您带到具有不同菜单的部分。
I'm using the Jetpack plugin to create the mobile version.我正在使用 Jetpack 插件来创建移动版本。
I'd really appreciate any help with this.我真的很感激这方面的任何帮助。
Niall尼尔
You can provide 2 different menus with mediaQueries, eg您可以使用 mediaQueries 提供 2 个不同的菜单,例如
Mobile first:移动优先:
.mobile-menu {
display: block;
}
.desktop-menu {
display: none;
}
@media (min-width: 600px) {
.mobile-menu {
display: none;
}
.desktop-menu {
display: block;
}
}
etc.等等。
http://codepen.io/HendrikEng/pen/MJjmQM http://codepen.io/HendrikEng/pen/MJjmQM
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.