Skip to content

Color

Color picker fields can be created with the following configuration:

'bodyColor' => [
'type' => 'code',
'colors' => ['red', 'green', 'blue', 'yellow', 'black', 'white'],
'label' => esc_html__( 'Select color', 'fieldify' ),
'disableCustomColors' => false,
'disableCustomGradients' => true,
'enableAlpha' => true,
'clearable' => true,
'showTitle' => true,
],