Language Attribute for Container Blocks and Pages/Posts
by Naked Cat Plugins 5 (1 reviews)

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.

Language Attribute for Container Blocks and Pages/Posts ranks #25,655 among WordPress.org plugins with 20+ active installations, is #186 of 765 in the Accessibility category, a 5/5 rating from 1 reviews, and was last updated Oct 20, 2026. Data from WordPress.org, refreshed twice daily — see methodology.

Compatible with WP 7.1.4
v3.4 Current Version v3.4
Updated 2 weeks ago Last Update on 20 Oct, 2026
Refreshed 1 week ago Last Refreshed on
#186 of 765 in Accessibility Top 50% by installs Downloads -11.8% this week Actively maintained
View on WordPress.org
Rank
#25,655
— No change
Active Installs
20+
— No change
KW Avg Position
N/A
— No change
Downloads
1.5K
+2 today
Support Resolved
0%
— No change
Rating
100%
Review 5 out of 5
5 (1 reviews)

Next Milestone 30

Total Progress 80%
20+ 30+
2,910
Ranks to Climb
-
Growth Needed
8,000,000
Active Installs
Pro

Unlock Exact Install Count

See the precise estimated active installs for this plugin, calculated from real-time ranking data.

  • Exact install estimates within tiers
  • Track install growth over time
  • Milestone progress predictions
Upgrade to Pro
Need 2 more installs to reach 30+

Rank Changes

24,372 25,014 25,655 26,296 26,938 31-10-2026 01-11-2026 02-11-2026 03-11-2026 04-11-2026 05-11-2026 06-11-2026 07-11-2026
24,769 25,447 26,125 26,803 27,481 23-10-2026 24-10-2026 25-10-2026 26-10-2026 27-10-2026 28-10-2026 29-10-2026 30-10-2026 31-10-2026 01-11-2026 02-11-2026 03-11-2026 04-11-2026 05-11-2026 06-11-2026 07-11-2026
Current #25,655
Change
Best #

Upgrade to Pro

Unlock 30-day and 90-day rank history charts with a Pro subscription.

Upgrade Now

Active Installs Growth

Active Installs 0,000,000+
Growth +0.0%
Peak 0,000,000

Downloads Growth

0 10 31-10-2026 01-11-2026 02-11-2026 03-11-2026 04-11-2026 05-11-2026 06-11-2026 07-11-2026
0 10 20 23-10-2026 24-10-2026 25-10-2026 26-10-2026 27-10-2026 28-10-2026 29-10-2026 30-10-2026 31-10-2026 01-11-2026 02-11-2026 03-11-2026 04-11-2026 05-11-2026 06-11-2026 07-11-2026
Downloads
Growth
Peak

Upgrade to Pro

Unlock 30-day, 90-day, and yearly download history charts with a Pro subscription.

Upgrade Now

Reviews & Ratings

5.0
1 reviews
Overall 100%
5
1 (100%)
4
0 (0%)
3
0 (0%)
2
0 (0%)
1
0 (0%)

Frequently Asked Questions

Common questions about Language Attribute for Container Blocks and Pages/Posts

Use the Template Language setting (in the Site Editor, under Appearance → Editor → Templates) when you have a group of pages or posts that all share the same language and use the same template — for example, a dedicated template for all your French-language posts. The language set on the template is automatically applied to every page or post using it, so you don't need to configure each one individually. It can always be overridden at the individual post or page level. Use the Page Language setting (in the Document Settings sidebar) when a specific page or post is written in a different language, either overriding the template-level setting or setting it independently when no template language is defined. This overrides the lang attribute on the HTML element itself, which corresponds to WCAG 3.1.1 (Language of Page). Use the Block Language setting (in the block’s sidebar panel) when only a specific section within a page is in a different language, while the rest of the page remains in the site’s default language. This corresponds to WCAG 3.1.2 (Language of Parts).
Yes, with an experimental feature that is off by default and may still change. When it is on, a page or post with its own language (set on the page itself or on its template) also shows texts such as dates, comment forms, post navigation and buttons in that language, as long as WordPress has the language installed. To turn it on, add this line to your theme’s functions.php file or to a small must-use plugin in wp-content/mu-plugins/: add_filter( 'nakedcatplugins_lang_attribute_blocks_switch_locale', '__return_true' ); The filter also receives the page or post ID and its language code, so you can turn it on for only some of them.
It applies to single pages and posts only, not to the blog page, archives or search results. When a page or post is saved with a language WordPress does not have yet, that language is downloaded from WordPress.org in the background, along with the theme’s and plugins’ translations for it. While a language is missing, Administrators also get a “Download translations” link next to this plugin on the Plugins page. The download runs on WP-Cron. If your website has WP-Cron disabled, make sure a real cron job runs it. Until the language is installed, the page shows these texts in the website’s language, so it never ends up half translated. Texts the theme or a plugin prepares before WordPress knows which page is being shown stay in the website’s language. To use another installed locale for a language, use the nakedcatplugins_lang_attribute_blocks_page_locale filter. For example, to show Angolan Portuguese (pt-AO) pages with the European Portuguese (pt_PT) translations, when your theme has no pt_AO translation: add_filter( 'nakedcatplugins_lang_attribute_blocks_page_locale', function ( $locale, $lang ) { return 'pt-AO' === $lang ? 'pt_PT' : $locale; }, 10, 2 );
The idea is to keep it simple and help content and website editors set different language sections, with as many child-blocks as they want, instead of setting it block by block.
Yes. Use the nakedcatplugins_lang_attr_highlight_color PHP filter and return the color you want. Here’s a Gist example. If your are working on a WordCamp website, or you don’t want to mess around with PHP, you can also add custom CSS to change the color, overriding our --nakedcatplugins-lang-attr-highlight-color variable. Here’s a Gist example.
On GitHub
You can report security bugs through the Patchstack Vulnerability Disclosure Program. The Patchstack team helps validate, triage, and handle any security vulnerabilities. Report a security vulnerability.

Sign In / Register

You need to sign in or register to use this feature.