Fix missing page language on Shopify

This page shows how to fix missing page language on Shopify. A missing page language means the html element has no lang attribute, so assistive technology guesses.

Steps in Shopify

In Shopify, open theme.liquid and confirm the html tag prints the shop locale. If a custom layout removed it, add lang from the request locale.

Check

  1. View source and look for lang on the html tag.
  2. Set it to the real language, such as en or de.
  3. Do not leave it as an empty string.

All platforms · Shopify · WCAG 3.1.1