Archived topic
sticky header with just logo
3 replies · Started by Anil on August 3, 2018
Please advise to make site header sticky/fixed on top.
I am using only logo in header at https://fitnessozone.com/
Regards.
P.S. Please add an option to make header sticky in customizer in next update :-)
Hi there,
Since you aren't using the primary navigation.
You should be able to achieve the same thing by uploading the logo as navigation logo:
https://docs.generatepress.com/article/navigation-logo/
Then assign an empty menu to the primary navigation:
https://docs.generatepress.com/article/using-the-wordpress-menu-builder/#setting-a-theme-location
Let me know if this helps :)
Hi Leo,
I did the way you suggested at one of my site here atOrganon
and using following css to hide menu button in small screen: (is this correct???)
@media (max-width: 768px){
.menu-logo .main-navigation:not(.mobile-header-navigation) .menu-toggle, .sticky-menu-logo .navigation-stick:not(.mobile-header-navigation) .menu-toggle {
display: none;
}
}
Yup that looks good to me :)