- Code: Select all
#gk-main-menu #main-menu > li.current-menu-parent > a {
display: inline;
padding: 10px;
color: #ffffff;
background-color:#e5e5e5;
border-radius:3px;
}
The code works well however it has no effect on the 'Home' button I've assigned (using a Custom Link in Menu creation). So I add the following:
- Code: Select all
.home ul li.menu-item-home > a {
display:inline!important;
padding: 10px!important;
color: #ffffff!important;
background-color:#562457;
border-radius:3px;
}
...and the 'Home' button highlights perfectly how I want it however this also highlights the 'Home' button, in the same fashion, within the mobile menu as well.
How can I target the BG highlight of the 'Home' button on the desktop version of my main menu and NOT the mobile version too?
Suggestions?
