Created
February 17, 2019 20:30
-
-
Save waqashassan98/184b07745bac1a63cea241de8d0cb30b to your computer and use it in GitHub Desktop.
Home page checks wordpress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( is_front_page() && is_home() ) { | |
// Default homepage | |
} elseif ( is_front_page()){ | |
//Static homepage | |
} elseif ( is_home()){ | |
//Blog page | |
} else { | |
//everything else | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment