In this super quick video we add in all the CSS necessary to make sure the current page item in the main navigation gets highlighted when that page is active. Turns out we kinda already did this, since we're so smart and thought ahead.

This is exactly why we didn't include the body tag in the includes, so that we can change class names on it it for different pages. Also, this is pretty similar to how WordPress is going to work once we move there. Each different page has a slew of different class names on the body we can use at will.

Leave a Comment

Posting Code

We highly encourage you to post problematic HTML/CSS/JavaScript over on CodePen and include the link in your post. It's much easier to see, understand, and help with when you do that.

Markdown is supported, so you can write inline code like `<div>this</div>` or multiline blocks of code in triple backtick fences like this:

  function example() {
    element.innerHTML = "<div>code</div>";

We have a pretty good* newsletter.