How to make sure that the header displays different content on different pages?

I've done a (primary) navigation that allows the user to anchor tags to the side. But I also have sub-pages, where I want a different navigation – only with my "Home" button.
How can I do that?