Archived topic
Fixed left vertical navigation layout
6 replies · Started by kanada on April 8, 2021
I have tried to follow this tutorial, but no nav appears https://generatepress.com/forums/topic/fixed-left-vertical-navigation-layout-css-and-customizer-only/
I'm using this code
@media (min-width: 769px) {
.site-header {
display: none;
}
#primary-menu.main-nav {
width: 20%;
height: 100%;
position: fixed;
top: 0px;
left: 0px;
opacity: 1;
padding-top: 175px;
background-color: #1a2930;
background-image: url("http://bluepointdigital.com/sites/create/elle/wp-content/uploads/sites/3/2016/09/1442274824.png");
background-repeat: no-repeat;
background-position: top center;
border-style: hidden;
border-top-width: 65px;
border-top-style: solid;
border-top-color: #1a2930;
}
.footer-widgets {
padding-left: 20%;
}
.site-info {
padding-left: 20%;
}
}
but nothing appears on desktop
I'm using the GP child theme http://generatepress.com/api/themes/generatepress_child.zip
Hi there,
There's no nav appearing because you've hidden its entire section when you added this CSS:
.site-header {
display: none;
}
.site-header element contains the menus so hiding it means hiding its contents as well.
can you check this tutorial https://generatepress.com/forums/topic/fixed-left-vertical-navigation-layout-css-and-customizer-only/
Hi there,
that topic is 5 years old - are you building a new site ? If so the Sider site in our site library maybe what you require:
wow thanks alot
You're welcome