Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1087178
    thelistener
    Participant

    Hi there!

    How do I show the megamenu only on mobile devices/tablets? I only want the Superfly menu I’ve got right now to show on laptops/desktops.

    Click HERE to see the site I’m working on:-)

    #1087520
    Jade
    Moderator

    Hi there,

    Please add this code:

    @media (max-width: 959px ) {
        .sfm-no-mobile #sfm-sidebar {
            display: none !important;
        }
    
       #ubermenu-main-2-primary {
            display: block !important;
       }
    }
    
    @media (min-width: 960px) {
        #sfm-sidebar {
            display: block !important;
        }
    
       #ubermenu-main-2-primary {
            display: none !important;
       }
    
       .x-navbar-inner {
           min-height: 0;
       }
    }
    

    Hope this helps.

    #1087529
    thelistener
    Participant

    I added the code and the Superfly menu dissappeared on my latop/desktop and the Ubermenu was still there. I want the opposite.

    Superfly: viewable on laptop/desktop only (not see on mobile)
    Uber/Megamenu: collapsed/responsive menu shown only on tablets and mobile (not seen on laptops/desktops).

    #1087533
    thelistener
    Participant

    also, i’ve already disabled the superfly menu from being seen on mobile. i don’t need code for that. thanks again!

    #1088070
    Rue Nel
    Moderator

    Hello There,

    Please use this code instead:

    @media (min-width: 980px ) {
       #ubermenu-main-2-primary {
            display: none !important;
       }
    
       .x-navbar-inner {
           min-height: 0;
       }
    }
    
    @media (max-width: 979px) {
       #ubermenu-main-2-primary {
            display: block !important;
       }
    }

    Please let us know if this works out for you.

  • <script> jQuery(function($){ $("#no-reply-1087178 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>