Created
January 5, 2019 09:49
-
-
Save Tsunamijaan/8620271bbc56f0fe2c4b1fcb5189b543 to your computer and use it in GitHub Desktop.
Homepage/Front page only conditional code wordpress
This file contains 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
Homepage only data with default data =============== | |
<?php if( is_home() || is_front_page() ) : ?> | |
<!-- Homepage Only Code --> | |
<?php else : ?> | |
<!-- Other Page Code --> | |
<?php endif; ?> | |
Homepage only data ============= | |
<?php if( is_home() || is_front_page() ) : ?> | |
<!-- Homepage Only Code --> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment