问题原文
原帖链接 · joe w · CC BY-SA 3.0
Now I'm aware that having multiple H1 tags on a page isn't best for SEO.
Unfortunately, this is how my theme is built. What is the best way to fix?
I'm having this problem mainly in my categories, blog, and tags. It may be in any page that contains multiple posts.
已采纳解答
原帖链接 · Henry Visotski · CC BY-SA 3.0
The good news: multiple H1's are no longer anything to worry about, and haven't been in a while. More good news: if it still bothers you, you can modify your WordPress theme.
Headings are used to provide structure on a page. Your single blog post page, for example, should probably only have one H1, because what else would you use as a blog post name tag? On the other hand, your Category page may display multiple blog post titles, descriptions, first paragraphs, etc. All of these blog titles might be H1's.
Search engines' reliance on headings has decreased since HTML5 introduced new content structure, with article and section tags. Having multiple pieces of standalone content on a page is commonplace. Search engines know this. This is why, if your page has an H2 instead of an H1, the lower level heading will be treated by them as an H1. Just make sure the heading copy is relevant to both humans and search engines.
That said, if your website theme was coded in a way that doesn't make sense semantically, you may want to just make changes or create your own hierarchy. In that case, make a child theme, and working in your child theme go into the PHP templates for your various content pieces and make the necessary changes. You may also need to update how your various headings look in the style.css file. If all of that seems too much, you may need to change your theme, but this might result in a number of other website issues.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
