You could make an if, something like this
<?php if( is_page(19) ) {
echo get_template_part( 'header', 'custom' );}
else {
echo get_header(); } ?>
That way, if the page id is 19 it'll post the templatefile header-custom.php instead of the usual header. You could substitute is_page()
with e.g.
with e.g.
is_page(array(1, 2, 3, 4, ))
is_home()
in_category(3)
And it loads what ever you write, like ding-dong.php would be echo get_template_part( 'ding', 'dong' );}.
You can also make elseif's to have different conditions, if you have multiple headers.
You can also make elseif's to have different conditions, if you have multiple headers.
Havnt tested it out so i dont know if it's working, but it should.
Though, if u only make small changes and know which pages the change should be active, you're easier of by just doing this: