Support » Fixing WordPress » Multiple headers

  • Nic727

    (@nic727)


    Hi,

    I would like to know how to make a different header for different page.
    For example, I would like my header for post, project and 404 to be different from my index page.

    I read that
    https://codex.wordpress.org/Function_Reference/get_header

    But I don’t understand where to put

    <?php
    if ( is_home() ) :
    	get_header( 'home' );
    elseif ( is_404() ) :
    	get_header( '404' );
    else :
    	get_header();
    endif;
    ?>

    Also, does the name of the header is the name of the menu?

    Thank you

Viewing 1 replies (of 1 total)
  • scottiescotsman

    (@scottiescotsman)

    You need to create a custom header in your functions.php then add it to where you want it to be placed.

Viewing 1 replies (of 1 total)
  • The topic ‘Multiple headers’ is closed to new replies.