Recommended practice Priority: Minor
A heading on the page is empty
The page contains a heading with no readable text, often left over from an empty section title, a theme block or an icon-only heading. This is a recommended practice, not a WCAG AA requirement.
This text was translated automatically and has not been reviewed by a native speaker yet.
Why it matters to your customers
Many screen reader users jump from heading to heading to get an overview of a page. An empty heading is announced as just "heading" with nothing after it, which is confusing and makes the page harder to follow.
Who is affected
- screen reader users
- people who navigate by headings
- blind people
How to fix it
Find the empty <h1>–<h6> elements (or elements with role="heading"). Either add meaningful text or remove the heading tag if the section has no title. If the heading contains only an image or icon, give the image alt text that works as the heading text. Do not hide heading text with display:none or aria-hidden.
On Shopify
Often caused by a section or block whose heading field was left blank while the theme still outputs an empty heading tag. Fill in the heading in the theme editor, or change the section's Liquid so the tag is rendered only when the field has text.
On Shoptet (CZ)
Usually comes from the template or an empty text block. Fill in or remove the block in the administration; if the heading is part of the template itself, ask Shoptet or a partner.
On PrestaShop
Often comes from a theme or module block with an empty title. Fill in the title in the module configuration or edit the .tpl file so the heading is printed only when there is text.
On WooCommerce
Often comes from page-builder heading widgets left empty or theme templates that print a title even when there is none. Delete the empty widget or adjust the template in a child theme.
Fix it with AI
Copy this prompt into ChatGPT, Claude or Copilot and add the HTML of the element. Check the answer before you publish it.
You are an experienced web developer and accessibility specialist. Fix this accessibility problem on my website so that it meets WCAG 2.2 level AA. Website: [https://…] ## Problem: A heading on the page is empty The page contains a heading with no readable text, often left over from an empty section title, a theme block or an icon-only heading. This is a recommended practice, not a WCAG AA requirement. **How to fix:** Find the empty <h1>–<h6> elements (or elements with role="heading"). Either add meaningful text or remove the heading tag if the section has no title. If the heading contains only an image or icon, give the image alt text that works as the heading text. Do not hide heading text with display:none or aria-hidden. ## Elements found by the automated check [Paste the HTML of the element here, or the selector from the Pandus report] ## Requirements - Change only what is needed; keep the design and how the site works. - Do not add accessibility overlays or widgets; fix the code or the content. - Show the corrected code and say in which template or file it goes. - Explain how to check the fix with the keyboard and a screen reader.
Standards
Not a WCAG success criterion: a recommended practice that makes the site easier to use.
Automated check: axe-core rule empty-heading.
dequeuniversity.com, github.com, www.w3.org
Read next
Guides and tools
- How to test a website against WCAG, step by step
- HTML accessibility checker (WCAG 2.2)
- Free WCAG checker for WCAG 2.2 AA
Help articles
-
How to read a report and what to fix first
What each part of the report means and how to turn it into a to-do list for your developer.