Site logo

Archived topic

Default colours

1 reply · Started by David on July 20, 2017

Viewing posts 1–2 of 2

Hi.
I have tried entering the following in functions.php, using a child theme of GP.

add_filter( 'generate_default_color_palettes', 'dr_custom_color_palettes' );
function dr_custom_color_palettes( $palettes ) {
$palettes = array(
'#000000',
'#FFFFFF',
'#4E7B52',
'#C2D093',
'#343331',
'#1EFE71',
'#75C7D7',
'#E4E2D8',
);

return $palettes;
}

Nothing happens to the existing default colours.
Can you please point me in the right direction for hooks/filters?

What that will do is change the palette colors inside the Customizer when opening the color picker.

This archived topic is closed to new replies.