Last active
January 31, 2016 12:54
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* nav current item highlight - children */ | |
.genesis-nav-menu li.current-menu-ancestor a { | |
background: #98B33E; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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