Title: Header Navigation
Last modified: August 20, 2016

---

# Header Navigation

 *  [IkeGordon](https://wordpress.org/support/users/ikegordon/)
 * (@ikegordon)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/header-navigation-2/)
 * Why won’t my sub menu items stay highlighted for the current page?
 * Why won’t this code work?
 * #header ul.nav li li.current-menu-item a,
    #header ul.nav li li.current-cat a,#
   header ul.nav li li.current_page_item a, #header ul.menu li li.current-menu-item
   a, #header ul.menu li li.current-cat a, #header ul.menu li li.current_page_item
   a { color: #165B94; font-size: .85em; font-weight: bold; background-color: #133C69;}

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 6 months ago](https://wordpress.org/support/topic/header-navigation-2/#post-3155499)
 * It could be overridden by somewhere else in your stylesheet, or the CSS selectors
   could be mismatching.
 *  Thread Starter [IkeGordon](https://wordpress.org/support/users/ikegordon/)
 * (@ikegordon)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/header-navigation-2/#post-3155505)
 * How can I find the correct CSS selectors. I’ve tried everything. Seems to work
   fine for the main navigation but fails to affect the sub menu.
 * Here’s main navigation code
 * #header ul.nav .current_page_item a,
    #header ul.nav .current-cat a, #header 
   ul.nav .current-menu-item a, #header ul.menu .current_page_item a, #header ul.
   menu .current-cat a, #header ul.menu .current-menu-item a { color: #165B94; }
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 6 months ago](https://wordpress.org/support/topic/header-navigation-2/#post-3155508)
 * Are you using a browser inspector tool like Firebug, or Chrome’s Inspect Element
   tool?
    If so, double-check the class names on the sub-menu selected items to 
   find whether you’re misspelling the selectors.
 *  Thread Starter [IkeGordon](https://wordpress.org/support/users/ikegordon/)
 * (@ikegordon)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/header-navigation-2/#post-3155576)
 * Well that wasn’t easy but I got it! Thanks Andrew! I learned a lot in the process.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Header Navigation’ is closed to new replies.

## Tags

 * [header navigation](https://wordpress.org/support/topic-tag/header-navigation/)

 * 4 replies
 * 2 participants
 * Last reply from: [IkeGordon](https://wordpress.org/support/users/ikegordon/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/header-navigation-2/#post-3155576)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
