Skip to main content
Did you know? Roughly 4,000 digital accessibility lawsuits were filed in US courts in 2024 (UsableNet). See what a free scan finds on your site →
Accessibility Shield
FeaturesFree ScannerFree ToolsPricingFAQBlogContact
Fix guidesPage language not setWordPress
WordPressWordPress
WCAG 3.1.1 Standard

Set the page language in WordPress

Pick your Site Language and make sure the theme prints it.

Verified against WordPress's official interface on 2026-10-09.
  1. Go to Settings > General and choose the right Site Language. Save.
  2. WordPress prints the language on the <html> tag through the theme. Block themes and well-made classic themes do this automatically.
  3. If the scan still reports it missing, your theme's header.php probably has a bare <html> tag. A developer should change it to <html <?php language_attributes(); ?>>, or switch to a maintained theme.
  4. Multilingual plugins (WPML, Polylang) set the language per page; check their settings if only some pages fail.

Check it: publish your change, then run a new scan from your dashboard. The issue should drop off the list.

Want to understand who this issue affects and the WCAG criteria?Read Page language not set overview

Using a different website builder?

We also have verified step-by-step instructions for this same issue on other platforms:

  • ShopifyShopify
  • WixWix
  • SquarespaceSquarespace
  • WebflowWebflow

Sources

  • Learn WordPress: using WordPress in other languages(opens in a new tab)
  • WCAG 3.1.1 Language of Page(opens in a new tab)

Not sure which of these your site has?

Run a free scan. It lists the issues on your page and links each one to the right guide for your platform.

Scan My Website Free
Accessibility Shield

Continuous automated WCAG 2.1 AA audits, hosted accessibility statements, and on-site barrier reporting for modern web teams.

Footer Navigation

Product

  • Automated Audits
  • Pricing & Plans
  • Free Audit Scanner
  • No-Code Fix Guides
  • Contrast Checker
  • Statement Generator
  • Compliance Guides

Trust & Security

  • About Our Mission
  • Security Architecture
  • Accessibility Statement
  • Contact Support

Legal & Policies

  • Privacy Policy
  • Cookie Policy
  • Terms of Service
  • 14-Day Refund Guarantee
© 2026 Accessibility Shield. All rights reserved.·Zero-Tracking Platform · No cookies sold or tracked
Theme