Site logo

[Support request] Disable hamburger on mobile menu

Home Forums Support [Support request] Disable hamburger on mobile menu

Home Forums Support Disable hamburger on mobile menu

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1014915
    Carrie

    Hello! Is there a way to disable the hamburger icon from showing up on mobile? I have a minimalist icon menu set up as a custom mobile menu that I’d like to show instead.

    #1014917
    Leo
    Staff
    Customer Support

    Hi there,

    Try this CSS:

    #mobile-header .menu-toggle {
        display: none !important;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    Let me know if this helps 🙂

    #1016848
    Carrie

    Nope, that doesn’t appear to do anything. Thank you for the suggestion, though! Is there anything else I might try?

    #1016873
    Leo
    Staff
    Customer Support

    Edited the CSS above.

    Let me know 🙂

    #1016892
    Carrie

    That removed all navigation, instead of having the hamburger icon be replaced with my mobile-only menu. I just noticed that I didn’t finish setting up the mobile menu, however, so let me do that and circle back! Sorry, my mistake.

    #1016897
    Leo
    Staff
    Customer Support

    What if you change the breakpoint to 0px?

    This will make it so the toggle never kicks in:
    https://docs.generatepress.com/article/mobile-navigation/#initiating-the-mobile-navigation-at-a-different-width

    #1016938
    Carrie

    Would that prevent the custom mobile menu from kicking in?

    #1016941
    Leo
    Staff
    Customer Support

    Sorry I thought you wanted the same menu.

    Can you try this CSS only?
    https://generatepress.com/forums/topic/disable-mobile-menu-for-primary-menu-only/#post-756064

    Let me know 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.