大网数据广告活动
网站运营与故障问答

Multiple H1 tags in blog, category, tag page?

· 52CE 我爱测

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…

问题原文

原帖链接 · 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.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2018-01-23)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。