Hi,
I’m trying to extend the starter
stack with some new groups and reordering them. I tried adding the key group
to a group-sub-module
as explained in the Element API References (https://theme.co/docs/element-api-reference#individual-controls) to change the order of the groups, but this doesn’t work.
// Top Level control group
[
'key' => 'headings',
'type' => 'group-sub-module',
'group' => 'x:layout-and-design',
'label' => __( 'Headings', '100leiden' ),
'controls' => [ ... ]
I also tried the using the attributes data-tco-sub-module
value: x-theme-options:layout-and-design
. But that doesn’t seem to work either. So I have two questions:
- What is the right way to change the order of the top level groups?
- Is it possible to add controls to an existing top level group-sub-module of the starter stack when extending it with a new stack?
Thanks in advance!