Menu above built with this plugin including Mega Menu.

Different menus in mobile and desktop

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Featherstone 1 year, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #30074 Reply

    William Eliasson
    Participant

    Hello!
    I would like to have different menus in mobile and desktop. Under initial setup you are only able to choose one menu to use.

    #30114 Reply

    Hey William,

    The plugin is a responsive plugin and is not specific to different devices.

    Having said that, technically it would be possible using the shortcode and the wp_is_mobile() function.

    Something like the below could work:

    <?php 
    
    if(wp_is_mobile()) {
       echo do_shortcode('[responsive_menu_pro menu_to_use="mobile-menu"]');
    } else {
       echo do_shortcode('[responsive_menu_pro menu_to_use="desktop-menu"]');
    }
    ?>

    Of course you will need to change the menu slugs above to match your own.

    All the best

    Peter

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Different menus in mobile and desktop
Your information:





<a href="" title="" rel="" target=""> <blockquote cite=""> <code> <pre> <em> <strong> <del datetime=""> <ul> <ol start=""> <li> <img src="" border="" alt="" height="" width="">

Responsive Menu Title Image
Responsive Menu
No coding knowledge needed