Archived topic
How can I add padding to my navigation bar
3 replies · Started by Jonny on June 28, 2018
Hi,
How can I add padding to my nav bar (both static and sticky) so that both the image and menu are positioned centrally (vertically). It is clear that they are NOT when scrolling down revealing the sticky menu.
Thank you for your help.
Cheers,
Hi there,
I believe this method should work better for what you are trying to achieve:
https://docs.generatepress.com/article/navigation-logo/#navigation-as-header
Let me know :)
This has helped a little thanks.
However when I increase the height of the sticky menu, it doesn't appear? Is this a glitch?
Why does the sticky menu not appear now?
Cheers,
The sticky navigation isn't showing on the home page because there isn't enough content so the page isn't long enough for the page to show.
You can see the sticky navigation showing correctly on the Booking page.
Might also want to remove this CSS you've added:
.main-navigation .navigation-logo img {
height: 75px;
}