Mernu issue

Home Forums Any Mobile Theme Switcher Mernu issue

This topic contains 6 replies, has 2 voices, and was last updated by  Dinesh 1 week, 4 days ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #6465 Reply

    DogWomble

    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?

    #6466 Reply

    DogWomble

    Eeek, 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.png

    #6471 Reply

    Dinesh
    Keymaster

    Hi 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

    #6568 Reply

    BobF

    Hi
    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?
    Bob

    #6572 Reply

    Dinesh
    Keymaster

    Hi 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

    #6868 Reply

    Dave

    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 Advise

    #6874 Reply

    Dinesh
    Keymaster

    Hi 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

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Mernu issue
Your information: