Site logo

Archived topic

still possible?

3 replies · Started by sparkle on March 25, 2019

Viewing posts 1–4 of 4

i'm trying to set my site-wide color palette using this code, which has worked in the past.

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;
}

is this still a valid way to set the colors?

also, in the past i've just put this in my functions file with my color choices. this doesn't seem to be working this way any more.

oh NEVERMIND. it's working now. not sure why it didn't on the first 10 saves. lol

No problems. Glad you got it resolved.

This archived topic is closed to new replies.