H1, H2 titles on blog
On the blog of the Flatter theme I would like to make better use of H1 and H2 title tags for
SEO reasons. Below is what I would like to achieve with these title tags:
Main blog page
On the main blog page (/blog/) I would like to add an H1 title entitled "Blog" before the blog post loop. The blogpost titles on this page should then be H2 titles.
Blogpost page
On the blogpost page (example: /hello-world/) there should just be the blogpost title in H1 tags.
Halfway there
I've managed to get a "Blog" title in H1 tags on the main blog page with the blog post titles in H2 tags on this page, but then the blogpost titles on the blogpost's single page are also H2 titles. Here's the code I'm using for this:
PHP Code:
<div class="blog">
<?php if ( ! is_single() ) {?>
<h1>Blog</h1>
<?php } ?>
<?php appthemes_before_blog_post_title(); ?>
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<?php appthemes_after_blog_post_title(); ?>
Any ideas on how to make adapt my solution so my blogpost's single post pages display the blogpost title in H1 tag as well?