(HELP!!!) How to make my two different headers show on different pages

I am also having this same problem. I want a button in my nav on my homepage to have an anchor link down to a certain area on the homepage, but now my other pages won’t be able to access the content page from that button. I have everything coded where I need it but cannot use a a different header on the homepage and another across the rest of the pages. Please help.