Core Accordion Custom Icons
Replace the default core Accordion toggle icon with configurable T2 icons for open and closed states
Last modified: April 22, 2026
Extension name
t2/core-accordion-custom-icons
Description
Replaces the hardcoded toggle icon in the core Accordion block with configurable T2 icons. Icons can be set at two levels (highest priority first):
- Per accordion block — via block attributes in the editor
- Globally via
t2.json— applies to all core accordion blocks on the site
Separate icons can be configured for the open and closed states. Defaults to chevronDown (closed) and chevronUp (open).
Configuration
t2.json
{
"t2/core-accordion-custom-icons": {
"icons": {
"closed": "chevronDown",
"open": "chevronUp",
"size": 24
}
}
}
Editor
In the block inspector, the Accordion block exposes a Toggle Icons panel with icon selectors for the closed and open states.