Changing the mobile menu

Posted in: Newspaper
Post count: 13

Hi,

Is there an option to have different items in the mobile menu to the desktop version? I can’t find the option to set the mobile menu content.

I did see this https://forum.tagdiv.com/topic/different-mobile-menu-when-using-megamenu-on-desktop/ . If this is the only way to do it what would the custom css be to hide subcategories which duplicate under the mega-menu on desktop?

Thanks,
Sean

Post count: 6600

Hi,

Unfortunately that would be the beast way, you can’t build a different menu for mobile only.
If you inspect the menu items you will noticed that each has a unique class, like “menu-item-4630” in this case, so you will need to use that class to hide the menu item which you don’t want to show up on desktop/tablets screen, then another css to hide the menu item you show on desktop and tables on mobile, below you have some screenshots which will make you understand this better:

* http://screencast.com/t/giGXF0RF
* http://screencast.com/t/iSEqUzAbFsVc
* http://screencast.com/t/Suboukyr8z
* http://screencast.com/t/vRvCuGd497M

You could also build the top menu as you like, the top menu it’s hidden on mobiles but you could customize it then hide it on desktop and use it on mobile.
Here you have the css I used for the example:

@media (min-width: 767px) {
.menu-item-4630 {
display: none;
}
}

@media (max-width: 767px) {
.menu-item-2962 {
display: none;
}
}

Thanks

  • This reply was modified 11 years by Lucian.
Post count: 13

Thanks, that makes sense. Will give it a try this weekend!

Post count: 13

Thanks. Tried it. Works a treat!

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.