Archived topic
Sticky nav button background
3 replies · Started by Marcus on January 13, 2020
Hello, I'd like to have a single CTA-style button to my sticky-nav so it looks like this:
Is this possible? I couldn't find any way of changing the background colour of the buttons (the only option is the background of the entire bar, and the background on hover)
Hi there,
Add this CSS:
.main-navigation .main-nav ul li.nav-button a {
background-color: #4dc28b;
line-height: 48px !important;
}
then add the nav-button class to that menu item:
https://docs.generatepress.com/article/using-the-wordpress-menu-builder/#custom-classes
You're a legend, thank you!
Glad to be of help