Archived topic
Adding button to menu via CSS
2 replies · Started by Yael on June 29, 2017
Hi there,
Based on this thread:
https://generatepress.com/forums/topic/custom-css-in-menu-item-not-working/
I modified my original CSS:
.main-navigation .gg-login a {
background-color: #006bae;
color: #FFFFFF !important;
box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.1);
}
.main-navigation .gg-login a:hover {
background-color: #c0a43e !important;
color: #FFFFFF;
}
To:
.main-navigation .main-nav ul li.gg-login a {
background-color: #006bae;
color: #FFFFFF !important;
box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.1);
}
.main-navigation .main-nav ul li.gg-login a:hover {
background-color: #c0a43e !important;
color: #FFFFFF;
}
But now there's additional padding being applied; you can see the issue here:
https://pixelhappy.co/blueprint17/login/
Here's a screenshot of how I want it to display and how it did display (on all pages except current) with my initial CSS:
Wish there were a delete option! Silly mistake on my part (had button assigned to one of the menu items).
Resolved. Thank you Leo!
haha I didn't help! Glad you found the solution :)