different headers for different pages code not working
-
Hi
I need to load different headers for different pages of my site: one header called catalog, the other artisteditions. All else should have the standard homepage header.I tried the wp reference for it:
if ( is_home() ) :
get_header( ‘home’ );
elseif ( is_404() ) :
get_header( ‘404’ );
else :
get_header();
endif;I transformed it into:
if ( is_catalog() ) :
get_header( ‘catalog’ );
elseif ( is_artist-editions() ) :
get_header( ‘artisteditions’ );
else :
get_header();
endif;but it doesn’t seem to work. Please, how do I adapt this code correctly?
many thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘different headers for different pages code not working’ is closed to new replies.