简体   繁体   中英

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?)?

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.

I'd really appreciate any help with this.

Niall

You can provide 2 different menus with mediaQueries, eg

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM