Allows to add HTML attributes to Gutenberg blocks.
As of April 2026, Attributes for Blocks is a WordPress ARIA plugin with 4.0K+ active installations and a 5/5 rating from 21 reviews. It has been downloaded 40K+ times in total. Requires WordPress 6.2+ and PHP 7.4+. Available on WordPress.org since 2021. Downloads are down 13% this week. Top alternative: Better Aria Label Support.
This plugin adds additional advanced inspector controls to Gutenberg blocks that allow to add any custom HTML attributes to the block’s front-end output. This allows you to add inline styles to fine-tune the block’s appearance, set aria attributes to improve your site’s accessibility, add data attributes to integrate with any JavaScript modules or even JavaScript DOM event attributes such as onclick, onchange or onload.
Thank you so much for creating this plugin! It adds a level of versatility to the block editor that WordPress really needed. Being able to easily add custom attributes — like data-*, aria-*, or other HTML attributes — makes it incredibly useful for developers and site builders alike.
It works exactly as expected, saves tons of time, and feels lightweight and reliable. Perfect for anyone who wants finer control over blocks without having to write extra code or rely on complex workarounds.
Huge thanks to the authors for keeping it simple, powerful, and developer-friendly — I truly hope this continues to be maintained for future WordPress versions. Highly recommended!
Thank you so much for creating this!
Worked exacltly as needed, I recomend it!
Thank you very much for providing this plugin, I have been able to use SAL scroll animation library with it works perfectly!
Hope you keep going with this Plugin for future WordPress versions.
Thank YOU!
| WordPress | 6.2+ requiredTested up to 6.9.4 |
| PHP | 7.4+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.