Posted on Leave a comment

New plugin: “Language Attribute for Container Blocks” now available on WordPress.org

Quica wearing a Parisian like hat and editing a post on a laptop

We’ve just released a brand new free plugin, “Language Attribute for Container Blocks
, and it’s now live on the WordPress plugin directory!

This simple but powerful plugin lets you add a lang HTML attribute to container blocks, like Group, Columns, and Cover. You should use it when the content inside one of these blocks is written in a different language than your website’s default language. For example, if your site is in English but you’re quoting something in Portuguese or French, this plugin helps you tell browsers and screen readers exactly what language that part is in.

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.

“Language Attribute for Container Blocks” was developed 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.

The plugin is lightweight and does one thing really well. It adds a useful tool to your content creation toolbox, making your site more accessible and search-engine friendly with just a few clicks.

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.

We welcome contributions and feedback over 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”

Leave a Reply