For some reason
is_front_page isn't triggered on my subsite, running a child theme with its own header with a page set as a static home page under Reading.
I have this code in
header.php to control which metatags to show on a post/page or on the frontpage, but only the
is_page is printed.
<?php if (is_single() || is_page()) : if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <!-- this is printed --> <?php endwhile; endif; elseif(is_home() || is_front_page()) : ?> <!--this is not printed --> <?php endif; ?>
I was wondering if the
is_front_page are cancelling each other out since they are both true when using a static front page?