
We’ve just released a brand new free plugin, “Language Attribute for Container Blocks“, now available in the WordPress plugin directory!
This simple and powerful tool lets you add a lang
HTML attribute to container blocks, like Group, Columns, and Cover.
Update, August 1, 2025: The plugin now also supports Navigation, Submenu, and Page List blocks.
Use it whenever content inside a container is in a language different from your site’s default. For example, if your site is in English and you quote text in Portuguese or French, this plugin signals to browsers and screen readers the correct language for each snippet.
This is not just great for accessibility. It’s also beneficial for SEO. When languages are explicitly defined, search engines like Google can better understand your content, leading to improved indexing and potentially higher rankings.
The plugin was built by our founder, Marco Almeida, during Contributor Day at WordCamp Europe 2025. A big thank you goes to Ryan Welcher for helping shape the code and to Amber Hinds for her input on accessibility best practices. After the initial release, Annie-Mieke Bovelett has been helping with further testing and improvements.
It’s lightweight and focused: It does one thing really well. With just a few clicks, your site becomes more accessible and search engine friendly.
See it in action
Here’s a simple example using the plugin to mark content written in different languages:
Portuguese (Portugal):
Este pequeno plugin ajuda a tornar o seu site mais acessível e otimizado para os motores de busca.
<div dir="ltr" lang="pt" class="wp-block-group has-medium-font-size"><div class="wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained">
<p>Este pequeno plugin ajuda a tornar o seu site mais acessível e otimizado para os motores de busca.</p>
</div></div>
Code language: HTML, XML (xml)
Arabic (Right to left):
هذا المكون الإضافي الصغير يجعل موقعك أكثر سهولة في الاستخدام ومحسّن لمحركات البحث.
<div dir="rtl" lang="ar" class="wp-block-group has-medium-font-size"><div class="wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained">
<p>هذا المكون الإضافي الصغير يجعل موقعك أكثر سهولة في الاستخدام ومحسّن لمحركات البحث.</p>
</div></div>
Code language: HTML, XML (xml)
This way, screen readers and search engines know exactly how to interpret each snippet, regardless of your site’s main language.
Get it and contribute
We welcome contributions and feedback at the GitHub repository. Whether it’s a bug report, feature request, or just a suggestion, we’d love to hear from you.
Maria helped test it. Quica mostly napped through it, as usual, but we’re pretty sure that counts as moral support.
Give it a try and let us know what you think: Download “Language Attribute for Container Blocks”