I'm trying to see if I am on a single page, this page is defined by:
- Is not the homepage for sure.
- Doesn't have any posts for sure.
Here's my code:
<?php if ( !is_home() && !have_posts() ) : ?> <div class="single-page"> <?php endif; ?>
page.php, but it doesn't seem to do anything. I know for a fact that simply adding html code to this file adds it to every single page.
What am I missing?