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.


  1. User Avatar
    Permalink to comment#

    I don’t think this is working for me.. Anyone watching this that could tell me what I might be doing wrong, I copied the code & edited to fit my links? :S and yes I have body classes

Leave a Comment

Posting Code!

You may write comments in Markdown. This makes code easy to post, as you can write inline code like `<div>this</div>` or multiline blocks of code in triple backtick fences (```) with double new lines before and after.

Code of Conduct

Absolutely anyone is welcome to submit a comment here. But not all comments will be posted. Think of it like writing a letter to the editor. All submitted comments will be read, but not all published. Published comments will be on-topic, helpful, and further the discussion or debate.

Want to tell us something privately?

Feel free to use our contact form. That's a great place to let us know about typos or anything off-topic.