check is home page code example
Example: is frontpage wordpress
if ( is_front_page() ) :
get_header( 'front' );
else :
get_header();
endif;
if ( is_front_page() ) :
get_header( 'front' );
else :
get_header();
endif;