I’m using this code:
/* Changes the Global Colros in GP */
add_filter( ‘option_generate_settings’, function( $settings ) {
$settings[‘global_colors’] = [
[
‘name’ => __( ‘Contrast’, ‘generatepress’ ),
‘slug’ => ‘contrast’,
‘color’ => ‘#000000’,
],
[
‘name’ => sprintf( __( ‘Base’, ‘generatepress’ ), ‘2’ ),
‘slug’ => ‘base’,
‘color’ => ‘#ffffff’,
],
// And so on..
];
return $settings;
} );
In the past, I had no problem with this but, today I can’t get my global colors to take.
Do you have any idea what bone-head mistake I’m making?