Archived topic
Cannot create header element with menu below text
7 replies · Started by Bruce on December 5, 2022
I am developing a website at brucel27.sg-host.com
I want it to look similar to https://www.sokokifallsfarm.com/
I created a header element with text for the site title and padded it with 100px above and below.
Despite trying many settings, I cannot get the menu be below the text that I entere3d for site title.
What am doing wrong?
Thanks
Bruce
Hi there,
can i see your site ?
No problem :)
If you really need to use an Element, then use a Block Element instead:
https://docs.generatepress.com/article/block-element-hook/
And set the Hook to: before_header
The Block element is good if you want to visually style the content or add other stuff, but if you want just the site title
then it would be better to set just use the Theme Header and set it to display the Site title in Customizer > Site Identity.
Thanks David,
That gets me part way there, but can I add padding the top, so it isn't at the top?
And can I control the spacing between the block and the navigation?
As I said, I am trying to achieve something like https://www.sokokifallsfarm.com/
Ok, with a Block Element, i would suggest you use our GenerateBlocks Plugin:
https://wordpress.org/plugins/generateblocks/
Those GB Headline Block has spacing controls so you can add padding or margin to it:
Your solution worked out great. And now I know more about generate blocks too.
Thanks
Awesome - glad to be of help!