Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

How to Create Mobile Menu?

  • Hi,

    I want my menus to open after clicking this Menu icon (mobile view), but, it’s not happening. How to do that? Maybe I missed some linking?

    Image: https://ibb.co/s9S6HwLd
    URL: https://financewalk.com/

    Thank you.

  • Hi there,

    The menu is showing by default; you don’t need to click the hamburger icon.

    So do you only need the hamburger icon on mobile and open the navigation by clicking the hamburger icon?

  • So do you only need the hamburger icon on mobile and open the navigation by clicking the hamburger icon?

    – Yes

  • Try enable the mobile header at customizer > layout > header.

  • Done this – enable the mobile header at customizer > layout > header.

    Still not working.

  • You have this CSS:

     .main-nav > ul {
          display: flex!important;
          flex-wrap: nowrap!important; 
          justify-content: center!important; 
          padding-left: 0!important; 
          margin-block: 0!important; 
          list-style: none!important; 
          text-align: center!important;
          white-space: nowrap!important;
        }

    change it to:

     @media(min-width: 769px) { 
    .main-nav > ul {
          display: flex!important;
          flex-wrap: nowrap!important; 
          justify-content: center!important; 
          padding-left: 0!important; 
          margin-block: 0!important; 
          list-style: none!important; 
          text-align: center!important;
          white-space: nowrap!important;
        }
    }
  • Where is this CSS? I couldn’t see in “Additional CSS”.

  • In your child theme.

  • Cool. This worked. Now, how to place it right side of the screen and edit it?

    Thank you. 😊

  • Hi there,

    Now, how to place it right side of the screen and edit it?

    Are you referring to the hamburger menu icon itself or the individual menu items?

  • Are you referring to the hamburger menu icon itself or the individual menu items?

    – Hamburger Menu Icon itself

  • Got it. In your child theme stylesheet, locate this CSS:

    
    .inside-navigation.grid-container { justify-content: center; }
    

    Then replace justify-content: center; with justify-content: flex-end; so it becomes:

    
    .inside-navigation.grid-container { justify-content: flex-end; }
  • Got it. In your child theme stylesheet, locate this CSS:

    
    .inside-navigation.grid-container { justify-content: center; }
    

    Then replace justify-content: center; with justify-content: flex-end; so it becomes:

    
    .inside-navigation.grid-container { justify-content: flex-end; }
  • It worked. Thank you.

    How to edit colors and Font Size etc of this Hamburger Menu items?

  • The hamburger icon shares the same color as the primary navigation menu item color.

    If you only want to change it for the hamburger icon and don’t want to affect the menu items, try this CSS:

    span.gp-icon.icon-menu-bars {
        color: red;
        font-size: 20px;
    }
  • Thank you. And what about the Font Size?

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