Is there a way to conditionally output a header row based on a template post/page/
Use case: I have a catch all template with a dark and light menu. I would like to output the dark menu only on a 404 page and blog posts/blog index archive and the light menu on all other pages, custom taxonomy archives and CPTs.
I would like to avoid creating a whole another template with just the dark header.
Maybe I’m looking at this the wrong way.
Any help is much appreciated.