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.

Using Secondary Menu Only – How to Disable Primary Navigation Completely?

  • Hello,

    On my website, the secondary menu is positioned exactly where I want it in the design. I do not plan to use the primary menu at all.

    However, on mobile devices, two hamburger menu icons appear.

    Currently, I am hiding the primary menu with this CSS:

    .main-navigation .main-nav > ul {
    display: none;
    }

    But I’m not sure if this is the correct approach. The issue is that the mobile hamburger icon still appears, and when clicked, it opens an empty menu because the primary menu items are hidden.

    What would be the proper way to completely disable the primary navigation (including the mobile toggle icon) in GeneratePress?

    Additionally, I would like to remove the primary menu area next to the logo in the header and instead use that space for a custom element (for example, text or another custom content block). What is the recommended way to achieve this in GeneratePress?

    Screenshot reference: https://prnt.sc/bsVoCWekEX9o

    So…

    want to use the secondary menu as my main navigation.

    On mobile devices, this secondary menu should appear in the primary navigation area (including the mobile toggle/hamburger position).

    In the header, next to the logo (on the right side), I would like to display custom information such as a phone number and email address instead of the primary menu.

    Thank you.

  • Hello,

    To begin with, you can disable the primary menu from the Customizer -> Layout -> Primary Navigation and set Navigation Location to No Navigation. Can you first try that?

  • Thank you i fix about navigation problems but another question still waiting. I disabled the secondary menu and added the primary menu to the bottom. Now I want to know how to place the contact information to the right of the logo…

  • In the header, next to the logo (on the right side), I would like to display custom information such as a phone number and email address instead of the primary menu.

    You could use a block element with the after_logo hook.

    after_logo hook

  • I solved all the questions, thank you for your help dear George. Best regards.

  • Excellent, no problem!

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