Language Attribute for Container Blocks and Pages/Posts
Add lang and dir attributes to Group, Columns, Cover, and other specific WordPress Blocks, Templates, or to specific Posts/pages.
Solide Wahl
Language Attribute for Containe… is a solid plugin choice in 2026, with a few things worth checking first. It runs on 50+ sites, is rated 5/5 and was last updated 1 month ago, and scores 71/100 on our health check.
- Getestet mit dem neuesten WordPress (7.1)
- Kleine Benutzerbasis (50+ aktive Installationen)
- Bisher sehr wenige Bewertungen
Wie stapelt es sich?
Side-by-side bei Installationen, Updates, Bewertungen und SupportTägliche Downloads
Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.
Ranglisten
Where Language Attribute for Cont… stands todayWordPress.org Ranglisten suchen
Live-Position in der Plugin-Suche, Top 100| Stichwort | Position |
|---|---|
| accessibility | >100 |
| block-editor | >100 |
| classic editor | >100 |
| Gutenberg | >100 |
| language | #57 |
Versionsübernahme
Anteil aktiver Sites pro Release.
Bewertungsaufschlüsselung
★★★★★★★★★★ 5 from 1 reviews
About Language Attribute for Container Blocks…
From the official readme · v3.4Beschreibung
This plugin aims to ensure that any language change in a page’s content is indicated to assistive technologies at the container block level, helping a website comply with WCAG guidelines.
This feature is available on the core block editor only at a text formatting level after code from Jb Audras plugin “Lang Attribute for the Block Editor” was merged into core. The objective of this plugin is to provide the same functionality at a container block level (Group – including all its variants, Columns, Cover, and other specific block types) so that the language applies to all child elements, no matter the kind of content inside.
The plugin also supports setting the language at the page or post level, both on the blocks and the classic editor. When an entire page is written in a different language than the website’s default, you can override the HTML lang and dir attributes for that specific page directly from the Document Settings sidebar, without needing to wrap everything in a container block.
For even broader coverage, the plugin supports setting the language at the template level in the Site Editor (Appearance → Editor → Templates). A language set on a template is automatically applied to all pages and posts using that template, unless a specific language is set at the individual post or page level — in which case the post-level setting takes precedence.
This plugin is heavily inspired by the Jb Audras plugin (including this readme file). The development started at WordCamp Europe 2025 Contributor Day, by Marco Almeida from Naked Cat Plugins / Webdados, and the help from Ryan Welcher on the code side and Amber Hinds on the accessibility compliance side.
For more context: this plugin helps you to make your website compliant with the Web Content Accessibility Guidelines (WCAG) success criteria:
- 3.1.1 Language of Page: The default human language of each web page can be programmatically determined. Use the template-level setting when all posts or pages sharing a template are in the same language, or the page-level setting when an entire page or post is written in a language other than the website or template default.
- 3.1.2 Language of Parts: The human language of each passage or phrase in the content can be programmatically determined. Use the block-level setting when only specific sections within a page are in a different language.
The purpose of these success criteria is to ensure that user agents can correctly present content written in multiple languages.
Keep in mind that you should set the lang and dir attributes only on a container block or page if the content is written in a language different from the one set globally on your website.
As per Web Content Accessibility Guidelines:
This enables user agents and assistive technologies to present content according to the presentation and pronunciation rules of that language. This applies to graphical browsers, screen readers, braille displays, and other voice browsers.
Both assistive technologies and conventional user agents can render text more accurately if the language of each passage of text is identified. Screen readers can use the language’s pronunciation rules. Visual browsers can display characters and scripts appropriately.
This is especially important when switching between languages that read from left to right and languages that read from right to left, or when text is rendered in a language that uses a different alphabet. Users with disabilities who know all the languages used in the Web page will be better able to understand the content when each passage is rendered appropriately.
That’s not just good for accessibility. It’s also great for SEO. Search engines like Google can better understand your content when languages are clearly defined. That means improved indexing and potentially better rankings.
Banner photo by Hannah Wright.
Supported block types
- Group (
core/group): Group contents together and set a language for them - Columns (
core/columnsandcore/column): Organize content into a set of columns and set a language for all the columns or a specific column - Cover (
core/cover): Set the language to all the contents inside a cover block - Navigation (
core/navigation): Create full navigation menus in different languages - Submenu (
core/navigation-submenu): Set a different language on a sub-section of your menu (for example, if you have the default language pages on the first level and a sub-menu with pages in another language) - Page List (
core/page-list): List all the pages on your website that are written in a different language and created as a child of the main page of that language - Content (
core/post-content): Set the post content on a custom template to a different language
Merkmale
- Set the language and text direction at the template level in the Site Editor: a “Template Language” panel lets you define the default language for all pages and posts using that template, which is automatically applied unless overridden at the individual post or page level
- Set the language and text direction for an individual page or post, both on the blocks and classic editor: a “Page Language” panel in the Document Settings sidebar overrides the HTML
langanddirattributes for that specific page, taking precedence over any template-level setting - See the language set on each page or post in a Language column on the Pages and Posts lists, and change it with Quick Edit, or for many items at once with Bulk Edit
- Add
langanddirattributes to Group, Columns, Cover, and other specific WordPress Blocks, mentioned above - Show visual outline around blocks that have a language attribute set – For easy identification of blocks you have already set to a different language during your editing process, only for Administrators and Editors, and if enabled in Settings – Writing
- Experimental, off by default: show WordPress’, the theme’s and the plugins’ texts on pages and posts with their own language in that language too, and install that language automatically when it is missing (see the FAQ on how to turn it on)
Installation
- Installieren Sie das Plugin und aktivieren Sie es.
- To set the language for all pages and posts using a given template: go to Appearance → Editor → Templates, open the desired template, and use the “Template Language” panel in the template settings sidebar.
- To set the language for an individual page or post (overriding any template-level setting): open the Document Settings sidebar (the panel icon at the top right of the editor) and use the “Page Language” panel.
- To set the language for a specific section within a page: insert a Group, Columns, Cover (or other specific) block, and use the “Block Language” sidebar panel to set the language for all the content inside that container.
Änderungsprotokoll
3.4 – 2026-10-20
- [NEW] Posts with their own language keep it when listed elsewhere: on the blog page, archives and search results, their title and excerpt are marked in their language, so screen readers and search engines read them correctly
- [NEW] Yoast SEO compatibility: a page or post with its own language now declares it in Yoast’s structured data and social sharing tags, not only on the page itself
- [DEV] Experimental, off by default: return true from the
nakedcatplugins_lang_attribute_blocks_switch_localefilter and pages and posts with their own language show WordPress’, the theme’s and the plugins’ texts in that language too; a language not yet installed is downloaded from WordPress.org in the background when a page or post is saved with it, or with a link on the Plugins page; thenakedcatplugins_lang_attribute_blocks_page_localefilter chooses another installed locale for a language, for example pt_PT for pt-AO pages - [DEV] Tested up to WordPress 7.2-alpha-64319
3.3 – 2026-10-02
- [NEW] See each page’s and post’s language in a new Language column, and set or remove it from Quick Edit or for many items at once with Bulk Edit
- [NEW] Language codes are checked as you type: WordPress-style codes like pt_PT become pt-PT, and codes that are not valid show an error
- [TWEAK] Requires WordPress 6.6 or newer, as the page and template language panel does not work on older versions
- [FIX] On themes that add their own classes to the page’s main HTML element, such as Flatsome, pages with their own language lost those classes, which could break the theme’s layout
- [FIX] The block language was applied to an inner element, or not at all, on Navigation blocks and on Cover and Content blocks set to an HTML element other than the default, instead of the whole block
- [FIX] On right-to-left websites, pages and templates set to a left-to-right language kept the right-to-left text direction
- [FIX] The language settings in the block editor were always shown in English, even when a translation was available
- [FIX] The language field placeholder showed the editor’s own profile language instead of the website’s language when the two were different
- [DEV] No more WordPress notice in the block widgets editor and Customizer when debugging is on
- [DEV] Tested up to WordPress 7.1
3.2 – 2026-08-02
- [FIX] Fatal error on WordPress 5.9-6.1 since the plugin relies on
WP_HTML_Tag_Processor, only available from WordPress 6.2, bumped the declared minimum version to match
3.1 – 2026-06-04
- [NEW] Add a template language option in the Site Editor templates, used as the default page/post language when no page/post language is set
- [FIX] Load editor styles with
enqueue_block_assetsto avoid iframe style warnings - [DEV] Tested up to 7.1-alpha-62456
3.0 – 2026-03-09
- [NEW] Plugin renamed from “Language Attribute for Container Blocks” to “Language Attribute for Container Blocks and Pages/Posts”
- [NEW] Set the page/post language at the document level: a new “Page Language” panel in the Document Settings sidebar allows overriding the HTML
langanddirattributes for a specific page or post, independently of the website’s default language - [TWEAK] Rename “Language Settings” sidebar block panel to “Block Language”
- [FIX] Gist URL for changing the highlight color using plain CSS
- [DEV] Tested up to 7.0-beta3-61865
2.2 – 2025-10-20
- [DEV] Implement deployment actions on GitHub
- [DEV] Update phpcs rules file
Screenshots
Für Entwickler
Ist das dein Plugin? Zeigen Sie die Zahlen.
Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.
Best Language Attribute for Contai… alternatives
All accessibility plugins →Fragen und Antworten
Language Attribute for Container Bl…: quick answers
Gerade Antworten, gezogen von Live WordPress.org Daten.
Quelle: WordPress.org
Is Language Attribute for Containe… free?
Yes. Language Attribute for Containe… is free to download and use from the official WordPress.org plugin directory.
Is Language Attribute for Containe… safe to use in 2026?
Language Attribute for Containe… is a solid plugin choice in 2026, with a few things worth checking first. It runs on 50+ sites, is rated 5/5 and was last updated 1 month ago, and scores 71/100 on our health check.
How many websites use Language Attribute for Containe…?
Language Attribute for Containe… is active on 50+ WordPress websites and has been downloaded 1,696 times since it launched in June 2025. It was downloaded 242 times in the last 30 days.
Does Language Attribute for Containe… work with WordPress 7.1?
Yes. The developer has tested Language Attribute for Containe… up to WordPress 7.1.5, the latest release. It requires WordPress 6.6 or newer.
What PHP version does Language Attribute for Containe… need?
Language Attribute for Containe… requires PHP 7.2 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Language Attribute for Containe… last updated?
The latest version, 3.4, was released on October 20, 2026 (1 month ago).
Who makes Language Attribute for Containe…?
Language Attribute for Containe… is developed and maintained by Naked Cat Plugins.
What are the best alternatives to Language Attribute for Containe…?
The most popular alternatives to Language Attribute for Containe… are Web Accessibility (formally… (500K+ installs), Auto Image Attributes From… (100K+ installs) and Accessibility by UserWay (80K+ installs).
Angetrieben von PageForge
Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.
PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.
- CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
- seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
- Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
- Kostenlos auf WordPress.org, keine Kreditkarte
