Added condition to include a hidden H1 on index when a page is set to front and the posts page is also set to a page as per suggestion by @davidakennedy

This commit is contained in:
Morten Rand-Hendriksen 2015-07-02 13:51:04 -07:00
parent dc6d3fa08c
commit 955cd140f8
1 changed files with 6 additions and 0 deletions

View File

@ -18,6 +18,12 @@ get_header(); ?>
<?php if ( have_posts() ) : ?>
<?php if ( is_home() && ! is_front_page() ) : ?>
<header>
<h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1>
</header>
<?php endif; ?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>