Archived topic
Build Hero Header with Generate Blocks
5 replies · Started by Juste on September 27, 2021
Hi I'm new to GP. I'm trying to build a Hero Header with generate blocks.
I created the content in gutenberg, saved it as a reusable block, and with a little shortcod-ing function, I put the shortcode in the PageHeader elements. the problem is the styling of the reusable block is not showing.
What is the "normal" to build a header with GB?
Hi there,
don't use reusable blocks or shortcodes.
Just create it directly in a Block Element - see this article that shows a Block Element - Page Hero:
https://docs.generatepress.com/article/block-element-page-hero/
Thanks David. It is absolutely fantastic for Generate Blocks. Now I'm missing the options to blend the header band with the hero and to customize the header (logo & text color). I'm I doing something wrong?
Also, is there somewhere a 101 class for GP 3 Premium? I feel like I'm in the rocket cockpit and I'm cruising around the block when I could go to the moon.
We have yet to add the merge header feature within the block editor ... its something we're looking at.
For now you would do:
1. Create your Block Element for the 'hero' section.
2. Create a Header Element, and simply enable the merge header options, and set it to the same Display Rules as your Block Element.
We have lots of tutorials on our YouTube Channels.
https://www.youtube.com/c/GeneratePress
https://www.youtube.com/c/GenerateBlocks
And Mike Oliver one of our designers has a course:
Thank you David. Your hack with the Header Element works well.
Glad to be of help!