Archived topic
Space between primary navigation and header element
5 replies · Started by Yi Jone on September 13, 2019
Hi,
Just beginning to get to grips with GP theme and the Premium plugin. I added a header element under my top menu navigation bar. How do I create a space between these two, similar to the spacing between the bottom of the header element and the Welcome static page, please?
Thanks,
Yi
Hi there,
Try this CSS:
.page-hero {
margin-top: 15px;
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
Let me know if this helps :)
Hi, how do I solve this without using CSS?
Hi Theodore,
It depends on what's the cause of the space.
If it's an empty paragraph block hooked to the page then you can just remove the empty paragraph to remove the space it caused.
But it's caused by a default CSS by WordPress core or theme's default stylesheet then overriding with CSS is the way to go. :)
Thanks for your quick response. I was able to fix this using the page hero header element feature by settling the top margin to 30px.
Thanks for letting us know. Glad you got it sorted. :D