Skip to content

Instantly share code, notes, and snippets.

@SiGaCode
Last active January 31, 2016 12:54
Show Gist options
  • Save SiGaCode/9070745e6d6d9fb3d000 to your computer and use it in GitHub Desktop.
Save SiGaCode/9070745e6d6d9fb3d000 to your computer and use it in GitHub Desktop.
Set the main menu item to current when a subpage is active and style it. From CobaltApps forum http://cobaltapps.com/forum/forum/main-category/web-design-talk/85261-make-menu-item-active-when-sub-menu-item-is-chosen-help-please
/* nav current item highlight - children */
.genesis-nav-menu li.current-menu-ancestor a {
background: #98B33E;
}
li[class*="current"] > a {
background-color: #CC0000;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment