Accy

Missing document language in WooCommerce

WCAG 3.1.1 (A) · EN 301 549 9.3.1.1

The <html> element declares no valid language.

Where to change it in WooCommerce

In the theme’s header.php, use <html <?php language_attributes(); ?>>.

In WooCommerce the theme and the plugins both contribute markup. Create a child theme before editing: otherwise the next update overwrites your changes.

As it is
<html>
As it should be
<html lang="en">

Why it matters

Screen readers pick the voice and pronunciation from that attribute. Without it, a Spanish shop can be read with English phonetics, and nothing is intelligible.

On other platforms

Does your WooCommerce shop have this failure?

We detect your platform automatically and give you the instructions for it. Free, no sign-up.

No sign-up. We scan one public page and store nothing about you.