1 2 3 4 5 6
<?php if (is_front_page()){ ?> <p>Home Page</p> <?php else { ?> <p>Not Home Page</p> <?php } ?> ?>
You can clone a snippet to your computer for local editing. Learn more.