Contributors: soerenbalke
Tags: block
Tested up to: 6.1
Stable tag: 0.1.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Accordion list and item block. Simple and easy to style. Has option to set default open in view.
- Upload the plugin files to the
/wp-content/plugins/fpm-block-accordion
directory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the 'Plugins' screen in WordPress
In theme.json
{
[...]
"styles": {
"blocks": {
[...]
"fpm-block/accordion-item": {
"css": "& .accordion-item__header { flex-direction: row-reverse; }",
"color": {
"background": "red",
"text": "black"
},
"spacing": {
"padding": "var(--wp--custom--spacing--gap)"
}
},
[...]
},
[...]
}
[...]
}
An answer to that question.
- Release