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:
parent
dc6d3fa08c
commit
955cd140f8
1 changed files with 6 additions and 0 deletions
|
@ -18,6 +18,12 @@ get_header(); ?>
|
||||||
|
|
||||||
<?php if ( have_posts() ) : ?>
|
<?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 /* Start the Loop */ ?>
|
||||||
<?php while ( have_posts() ) : the_post(); ?>
|
<?php while ( have_posts() ) : the_post(); ?>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue