Petra
AI assistant for GrootMade
Hi! I'm Petra 👋 Ask me to help you find the perfect WP plugin, theme, or template kit.
forked from Attributes for Blocks™
Elemental Traits is not affiliated with Attributes for Blocks. The name and any related trademarks are used solely for nominative descriptive purposes.
This plugin extends the block editor by adding a control panel to attach custom HTML attributes to any block. It is designed for developers and site builders who need precise control over block output for styling, accessibility, or JavaScript integration without creating custom blocks.
Custom Attribute Addition: Add any standard or custom HTML attribute, such as id, class, data-*, aria-*, or event handlers like onclick, directly from the block settings sidebar.
Front-End Output Control: Attributes are applied to the block's root element in the front-end HTML, allowing for clean integration with CSS frameworks, JavaScript libraries, and accessibility tools.
User Permission Security: Attribute editing is restricted to users with the unfiltered_html capability by default, preventing unauthorized code injection and maintaining site security.
Dynamic Block Support: Works with both standard static blocks and dynamic blocks that use a render_callback, ensuring broad compatibility across the editor.
Filter for Customization: Developers can use provided filters, like afb_unsupported_blocks, to exclude specific blocks from receiving the attribute controls or to modify attribute output programmatically.
Version
Original
Updated