Archived topic
Sticky Navigation
3 replies · Started by gbebrokers on May 22, 2018
Viewing posts 1–4 of 4
Hi. I would like to add both Primary navigation and Secondary Navigation to Sticky navigation. How Can I do this?
Hi, there isn't currently an option to do this - things get a little weird when sticking two elements.
Thanks for your reply. Is there any other option that keeps Primary and Secondary Navigation on when scrolling down?
Experimenting but you could try setting the sticky for mobile only. And adding this CSS for desktop and tablet
@media (min-width: 768px) {
.secondary-navigation {
position: fixed;
width: 100%;
}
.main-navigation {
position: fixed;
width: 100%;
top: 40px;
}
.site {
margin-top: 124px;
}
}
This archived topic is closed to new replies.