Hi,
No, we want to modify only one dropdown.
Here is a code.
This as a actual code in matrix theme.
Kirki::add_field('matrix_theme', array(
'settings' => 'color_scheme',
'label' => __('Select Color Scheme', 'matrix'),
'section' => 'general_sec',
'type' => 'select',
'priority' => 10,
'default' => $matrix_theme_options['color_scheme'],
'choices' => array(
'red' => __('Default', 'matrix'),
'green' => __('Green', 'matrix'),
'cyan' => __('Cyan', 'matrix')
),
'sanitize_callback' => 'matrix_sanitize_text'
));
Now we created a “Child-Theme” for matrix theme.
And we want to modify above code with this.
Kirki::add_field('matrix_theme', array(
'settings' => 'color_scheme',
'label' => __('Select Color Scheme', 'matrix'),
'section' => 'general_sec',
'type' => 'select',
'priority' => 10,
'default' => $matrix_theme_options_child['color_scheme'],
'choices' => array(
'blue' => __('Default', 'matrix'),
'red' => __('Red', 'matrix'),
'green' => __('Green', 'matrix'),
'cyan' => __('Cyan', 'matrix')
),
'sanitize_callback' => 'matrix_sanitize_text_child'
));
You can see our matrix theme package here:
Matrix
Thank you