check if current page is front wp 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;