Hi there,
I was taught that a post title in WP is automatically an H1 tag? So no need to put another H1 tag in the content portion of your post.
Is this true?
Thanks
Louise
Hi there,
I was taught that a post title in WP is automatically an H1 tag? So no need to put another H1 tag in the content portion of your post.
Is this true?
Thanks
Louise
Depends on your theme, but generally yes. If you theme changes that behavior, then no.
Thank you!
I will check with the theme.
Louise
As said before, I will check with the theme.
But generally, is there a snippet of code I can check for that indicates whether the theme does this?
Louise
<h1 class="something">
<?php the_title(); ?>
</h1>
Something like that
Some themes will make the home page (index view) have the h1 tag as the site title, then once you go to individual pages or single post view, the post/page title becomes the h1..... that's how I prefer it done
Thanks, I looked that up. This is what I found:
<h1 id="post-<?php the_ID(); ?>"><?php the_title(); ?></h1>
for the page.php
<h1><?php the_title(); ?></h1>
for single post page
Could those be it?
Louise
Yes, those are it
Thanks for the help Rev.Voodoo!
You must log in to post.