Attributes for Blocks
View on WordPress.orgScores higher than 69% of indexed plugins
About
Allows to add HTML attributes to Gutenberg blocks.
Security History
What It Does
Attributes for Blocks adds a panel in the Gutenberg editor that lets you attach custom HTML attributes, including ARIA labels, IDs, roles, and styles, directly to individual blocks. In practice, you can mark up a block as a navigation landmark, add a data-testid for QA scripts, or inject inline styles without writing custom CSS. It is a precision tool for developers and accessibility-focused builders rather than a content-creation plugin.
Who It's For
This plugin is best for site owners and developers who need fine-grained control over block markup for accessibility, testing, or styling purposes. It fits teams building ADA, WCAG, or ARIA-compliant sites where the default block output does not provide enough semantic detail. Web agencies that hand off custom Gutenberg builds to clients will also find it useful for adding stable hooks and identifiers.
Who Should Skip It
If you only need visual customization, a full block suite like Spectra or Kadence will give you far more design control without touching HTML attributes. Casual bloggers and small business owners who do not care about accessibility tags, custom IDs, or QA hooks will get no value from installing it.
The Bottom Line
Attributes for Blocks is a small, well-maintained, and highly rated utility that solves one specific problem: adding HTML attributes to Gutenberg blocks. Its narrow scope and tiny install base mean it is not a general-purpose tool, and the lack of any support history makes it harder to judge how the author handles edge cases. Recommended for accessibility-focused developers and agencies, but unnecessary for anyone who is not editing block markup directly.
Related Plugins
Pick Spectra if you want dozens of pre-built blocks and design controls rather than raw HTML attribute editing.
Choose Kadence if you need a fuller page-building toolkit with strong design features and a much larger install base.
Choose Starter Templates if you want ready-made full-site imports rather than per-block attribute control.
This is unrelated to block attributes and serves a completely different purpose, so it is only listed because of category overlap.
Pick PublishPress if you want block-level visibility and permissions controls alongside some custom block options.