Hi there,
I am using the Imagination theme on my WordPress website. I've heard that from an SEO point of view it's best when a page has just one h1 tag. However, the titles of the posts on my site were in fact h1 tags on the index page, so I decided to re-write the index.php, transforming the h1 tags (the posts' titles) into h2 tags.
All of that is fine, my problem is, I also have posts where I've got h2 tags within the content of the posts. Therefore, on the index page the posts' titles and the within-content h2 tags look the same, and are all h2 tags. I think this looks rather spammy.
What I'd like to do is transform the h2 tags within the content of the posts to h3, but only on the index page. The ideal would be: The titles of the posts would be h2 on the index page, but h1 on the respective post pages and the h2 tags from within the content would be h3 on the index page, but h2 on the post page.
I hope it's not too complicated. Thank you.