Add an x-default language alternate
Default language adds an x-default entry to Polylang’s alternate-language attributes for translated singular content.
The setting appears under Settings → POM Tweaks → SEO & LLMs → Languages only when Polylang Pro is active.
Configure
- Confirm Polylang Pro languages and translations are complete.
- Enable Default language.
- Choose Default site language.
- Save.
- Open a translated post, page, or public custom post type.
- Inspect the document head and confirm one
hreflang="x-default"points to that content’s translation in the chosen language.
If the current content has no translation in the selected language, the module adds no x-default URL.
Scope
The module extends Polylang’s existing hreflang output. It does not:
- change the WordPress or Polylang default language;
- redirect visitors;
- translate content;
- create missing alternate links;
- change canonical URLs;
- add an archive or homepage fallback when no translated post is available.