Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Default colorpicker colors

$
0
0

Replies: 0

Hi there,

I’m using this snippet for changing my default colors in the Customizer, but there’s no effect.


add_filter( 'generate_default_color_palettes', 'tu_custom_color_palettes' );
function tu_custom_color_palettes( $palettes ) {
	$palettes = array(
		'#000000',
		'#FFFFFF',
		'#F1C40F',
		'#E74C3C',
		'#1ABC9C',
		'#1e72bd',
		'#8E44AD',
		'#00CC77',
	);
	
	return $palettes;
}

Have added this in file functions of my child theme.. Am I doing something wrong?

Guido


Viewing all articles
Browse latest Browse all 59525

Trending Articles