How to highlight current location in WordPress main navigation bar

In the css, if you add the following code:


li.current_page_item{
/* Change the background color below to control how the navigation/menu section you're in changes color. */
background:#3c78a7;
color:#777;
}

the background will change colors. :-D

Correction:

That hack only works if you’re in the TOP LEVEL menu pages. As soon as you go one level deep, it quits working. Argh.

This entry was posted in Tips and Tricks and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>