Created
July 27, 2013 17:14
-
-
Save ErikBernskiold/6095534 to your computer and use it in GitHub Desktop.
Shows the content within the if-clause only on the frontpage.
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
<?php if ( is_front_page() ) : ?> | |
<h2>Hooray! This is the front page!</h2> | |
<p>Yep, we are on the frontpage, within this if-clause, we can do whatever we want. Pretty neat, eh?</p> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment