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.

Creating custom header block

  • I’m creating a custom header block using Generateblocks Pro and a code snippet to create a shortcode for the nav as explained in this article: https://helwp.com/tutorials/create-your-header-with-generateblocks/
    I’ve created a test page here: https://preview.edmontonchambermusic.org/new-header-test/
    I can’t figure out why the nav is being repeated. The custom header nav appears below the other. Mobile nav and Sticky nav are turned on. There is a Header element running on other pages but I excluded it from this test page.

  • Hi there,

    Can I ask why a custom header element is needed here?

    The header layout I’m seeing can be done with the theme’s default header.

    Let me know if I’m missing something 🙂

  • I want to create a custom header for the home page and I would like to use blocks to create it. I just started this header to test loading the gp nav so that is why there isn’t much to it yet.

  • Hi there,

    Do you need the sticky navigation feature? The default header shows up because the sticky navigation is activated.

  • I needed the sticky menu. I couldn’t get it to not show on the home page so I used it where it is and created a hero just for that page.
    https://edmontonchambermusic.org/

  • So do you just want to hide the sticky navigation on homepage?

    If so, you just need this CSS:

    .home nav#sticky-navigation {
        display: none;
    } 
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.