is_front_page() && is_home() WordPress Default, Static and Blog Page

if ( is_front_page() && is_home() ) {
 // Default homepage

} elseif ( is_front_page()){
 //Static homepage

} elseif ( is_home()){

//Blog page

} else {

//everything else

}

Leave a Reply

Your email address will not be published. Required fields are marked *

*