wordpress is homepage code example
Example 1: is frontpage wordpress
if ( is_front_page() ) :
get_header( 'front' );
else :
get_header();
endif;
Example 2: wordpress is home page
// Determines whether the query is for the blog homepage.
is_home()