So I have set up a pretty basic template for pages using:
<?php include('header.inc'); ?>
and page structure is something like mydomain.com/whales/page-name
I was hoping to have a different header.inc for every group of pages (so based on the parent page include the relevant header.inc).
For example, /whales/ would have a different header than /goldfish/ (sorry for the silly examples).
However, I can not for the life of me find a solution, nor am I having any luck in creating the desired outcome. Has anyone done anything like this before? Am I approaching this is the wrong way?