I have an auto generated Wordpress menu that's created the following:
<li class="page_item page-item-23 page_item_has_children">
<a href="#">Main item 1</a>
<ul class="children">
<li class="page_item page-item-52498 current_page_item">
<a href="#">Item 1</a>
</li>
<li class="page_item page-item-52496">
<a href="#">Item 2</a>
</li>
<li class="page_item page-item-52477">
<a href="#">Item 3</a>
</li>
</ul>
</li>
I want to say when I'm on the first sub item, highlight the main li.
This is the CSS I'm using (ideally this would be more simple but due to the nature of the auto generated menu it's a bit messy!):
.page-item-52498.current_page_item li.page-item-23 a {
color:white!important;
font-family:'Museo Sans W01 500'!important;
}
At the moment this doesn't make the first li a
white.