From 0a16c406747ec61fa3f9ade5500edeaa523d2fbe Mon Sep 17 00:00:00 2001 From: Ari Stathopoulos Date: Mon, 14 Oct 2019 18:42:58 +0300 Subject: [PATCH] change colorpicker --- inc/customizer/nested-grid.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/inc/customizer/nested-grid.php b/inc/customizer/nested-grid.php index cf1ff9a..0e158da 100644 --- a/inc/customizer/nested-grid.php +++ b/inc/customizer/nested-grid.php @@ -145,9 +145,8 @@ function gridd_add_nested_grid_options( $id ) { ] ); - Customizer::add_field( + new \Kirki\Field\ReactColor( [ - 'type' => 'color', 'settings' => "gridd_nested_grid_{$id}_background_color", 'label' => esc_attr__( 'Grid Container background-color', 'gridd-plus' ), 'description' => '', @@ -161,7 +160,7 @@ function gridd_add_nested_grid_options( $id ) { ], ], 'choices' => [ - 'alpha' => true, + 'formComponent' => 'ChromePicker', ], ] );