Different Menu on Mobile

Posted in: Newspaper
Post count: 19

Hi Team,
I tested but I decided not to use the Mobile Theme as I would have to rebuild my entire website (which is not an option right now).

We started to use Mega Menu feature (which is quite nice), but as it doesn’t load on mobile, we would like to have different menus from desktop and mobile.

Is there a way to accomplish that?

The only other way I can think of is via functions.php using child theme… but I’m not very clear on what needs to be accomplished if I use that way.

I searched on the forums and I might do something like this:
if ( wp_is_mobile() ) {
wp_nav_menu( array( 'menu' => 'mobile-menu' ) );
} else {
wp_nav_menu( array( 'menu' => 'desktop-menu' ) );
}

Please advise.

Post count: 20688

Hi,

You could use a cloud header template, this will allow you to select the menu you want to display on mobile – http://prntscr.com/nfn9ws

Here you can see the available cloud header templates, these can be imported and alos modified if needed
https://cloud.tagdiv.com/#/load/Headers
You can also build your own using the header builder elements
http://prntscr.com/nfnapk

So you can display a different mobile menu if you use a cloud header template, without resorting to code.

Thanks

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.