October 2, 2016 at 12:35 pm #6465
I’ve hit an interesting issue to do with the display of menus.
I have the plugin set to send the Twenty Sixteen theme to mobile devices. When I have this set as the default theme for desktop, the menu will display in a mobile browser. When I set my normal theme as default for desktop browsers, it will not display.
I suspect the reason is because on the Twenty Sixteen theme, the “Theme Locations” lists “Primary Menu” whereas on my normal theme it gets listed as “Main Navigation Menu”.
I have attached screenshots. Is there a way to make this worjk?October 2, 2016 at 12:36 pm #6466
DogWombleOctober 3, 2016 at 4:29 pm #6471
The menu system of wordpress only allows menu for active theme only. So for mobile theme we are unable to set in the same way as for the main desktop theme.
So we need to use a tricky solution here. First you need to register a menu in your active theme. You can name it Mobile theme and then you need to manually place that mobile menu code in your mobile theme.
Currently this is the only way we can use menu for mobile theme.
ThanksNovember 2, 2016 at 12:38 pm #6568
Love your plugin!!
Can you explain how I manually place the menu from my desktop theme to the one I’m using for Mobile Swicher?
BobNovember 4, 2016 at 3:41 am #6572
The process is same. You need some coding skills here. First you need to register a menu in your active theme. You can name it Mobile theme and then you need to manually place that mobile menu code in your mobile theme.
ThanksJanuary 5, 2017 at 5:47 pm #6868
Same problem here.
I’ve been trying to do this for a week now to no avail.
I’ve registered the menu in functions
register_nav_menu( ‘secondmenu’, __( ‘Primary Menu’, ‘twentytwelve’ ) );
and in the header
<?php wp_nav_menu( array( ‘theme_location’ => ‘secondmenu’ ) ); ?>
If 2012 is activated then the menu works.
However when I activate my regular theme and set 2012 to be the mobile switcher the default menu with all pages etc appears. I’ve trying activating it through customizer etc but nothing seems to work when looking via mobile.
Please AdviseJanuary 6, 2017 at 6:43 pm #6874
Can you please make sure these points are done right ?
1. Did you register the menu in your main desktop theme ?
2. Added the menus when your desktop theme is active ?
3. Hope you have place the menu code in your mobile theme.
Actually the process should go like this. Can you please confirm and let me know ?