Hey guys. I’m working on a little theme and I’ve hit a road block. It’s local so I can’t give a codepen link so I’ll try to explain this the best I can. My home page loads up and I have everything looking normal. When I click to go to a new page though I need the navigation to change to different navigation style. I need some way to know what page I am on so I can know which navigation to load. I imagine there is some type of way I can use an if/else statement with PHP to achieve this but I’m a bit stuck. I’ll include an idea I had though in the snippet below. Sorry if this comes off as a two part question. Any help is always greatly appreciated.
<?php if ( header('Location:'.get_site_url()){
} else {
} ?>