[Resolved] What is Block Type > Site Header, and how do we use it?

Home Forums Support What is Block Type > Site Header, and how do we use it?

  • This topic has 5 replies, 3 voices, and was last updated 4 weeks ago by David.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1400127
    Philip

    I’m learning how to use the new Block Element.

    What I really want to know is…
    “What is Block Type > Site Header, and how do we use it?”

    Is the Block Type > Site Header, the logo and navbar area (when navbar is floated right). That is, like the old merge header?

    Or should we use the Block Type > Site Header as a page hero section that goes above or below the navbar?

    If the the Block Type > Site Header, is the logo and navbar area. Can we put a navbar in a GenerateBlocks layout that we place in Site Header position?

    If I hook a GenerateBlocks layout on generate_after_header I can merge the header. If I select Site Header instead of a hook, I can’t merge the header.

    What I really want to know is…
    “What is Block Type > Site Header, and how do we use it?”

    Thanks
    – Philip.

    #1400377
    David
    Staff
    Customer Support

    Hi there,

    Block Type > Site Header will replace the entire GP Site Header – the area where your Logo and Site Identity is displayed by default.

    WordPress are working on a Navigation Block.
    Until there is a stable release the Navigation has to be set to below header or above header in the Customizer. If it is set to Float right or left ( which is inside the site header ) it will also be removed.

    If you want to use the Block Header to create a Hero that is merged with the Site Header / Navigation then you would:

    1. Create a Block Element with your hero content and set it to the after_header hook
    2. Create a Header Element – do not add any hero content, simply skip to the Site Header tab and set it to Merge with Content.
    3. Make sure both elements have the same display rules.

    #1400474
    Philip

    Thanks David

    I was confused because I couldn’t add a navbar inside the Block Type > Site Header.

    I’ll take another look at Block Type > Site Header when version 3 of GeneratePress theme, and the WordPress navigation block are available.

    As you say, I can merge the header if I use the after_header hook.

    The Block Element really is a plus point, I love it.

    #1400500
    David
    Staff
    Customer Support

    It is rather good especially with GenerateBlocks. And we have some real exciting features planned.

    Glad to be of help.

    #1591139
    Jason

    David,

    First, very helpful info as I was looking to do a similar header to Philip. Using a GenerateBlock, I now have nice site header using shapes with navigation that was very easy to create. So, thank you!

    My issue is that my logo is clickable to the Home Page if I use the block only but not once merged with the header.

    How do you make it so that the image is clickable once displayed merged?

    Thanks in advance, Jay.

    #1591217
    David
    Staff
    Customer Support

    Hi there,

    sounds like a Z-index issue, if you can raise a new topic you can share a link to your site in the Private Information field and we can take a look at the problem.

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