Creating Navigation Highlights


Published: 2009-11-13

When creating this site I decided I wanted to have the navigation bar have a different color highlight the current page. I dived in thinking it would be a simple problem. Turns out I was wrong.

It's not impossible but it's not easy. As you can see above, I eventually got it to work. This article was of immense help. Just follow along and hope for the best.

One final tip, if your home page is different from the blog page, use the is_page('originalpagename') not is_home() and use is_home() for the blog page. Update: This is the code I used for those interested.