Hi Kathryn! ??
You can’t see it on the front page, but I think on every other page, for example on the full width page:
https://validator.w3.org/nu/?doc=https%3A%2F%2Fselademo.wordpress.com%2Fpage-templates%2Ffull-width-page%2F
On line 39 in header.php:
<div id="content" class="site-content">
On line 21 in full-width-page.php and line 20 in grid-page.php:
<div id="content" class="site-main" role="main">
And for the additional closing tag:
It is in line 15 in content.php
<?php the_title( '<h1 class="entry-title"><a href=" ' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); ?></a>
The closing tag is in the the_title
call and there is one after the call, too. The second one (</a>
) at the end of the line is not necessary.
These files have the same problem:
content-gallery.php (line 17)
content-video.php, content-aside.php, content-quote.php, content-link.php (line 15)
As it is in the else part it is just used on non single posts, for example on the blog page:
https://validator.w3.org/nu/?doc=https%3A%2F%2Fselademo.wordpress.com%2Fblog%2F
<?php if ( is_single() ) : ?>
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
<?php else : ?>
<?php the_title( '<h1 class="entry-title"><a href=" ' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); ?></a>
<?php endif; // is_single() ?>
I hope this will help you to spot the mistakes. ??
All the best,
Torsten