Home › Forums › Any Mobile Theme Switcher › Mernu issue
- This topic has 6 replies, 2 voices, and was last updated 7 years, 3 months ago by Dinesh.
-
AuthorPosts
-
October 2, 2016 at 12:35 pm #6465DogWombleGuest
Hi all,
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 #6466DogWombleGuestEeek, images didn’t seem to work correctly and I can’t now edit the post,
Images are at:
http://users.on.net/~dogwomble/Menu1.png
http://users.on.net/~dogwomble/Menu2.pngOctober 3, 2016 at 4:29 pm #6471DineshKeymasterHi DogWomble,
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.
Thanks
November 2, 2016 at 12:38 pm #6568BobFGuestHi
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 #6572DineshKeymasterHi Bob,
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.
Thanks
January 5, 2017 at 5:47 pm #6868DaveGuestSame 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 Advise
January 6, 2017 at 6:43 pm #6874DineshKeymasterHi Dave,
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 ?
Thanks
-
AuthorPosts
- The topic ‘Mernu issue’ is closed to new replies.