Archived topic
Colour Palette Settings
8 replies · Started by Len on January 23, 2020
I can't find anywhere to change the colour palette that shows in the customers > colors section, nor where its getting the default colours from. I want to set default colours for each website. I have found a forum post that suggests a function in functions.php, but I am not sure if there is something else. It seems a basic omission to what is other wise a good theme. I have the premium version. How do I resolve this please?
install this plugin
https://wordpress.org/plugins/code-snippets/
copy this code using your colors
add_filter( 'generate_default_color_palettes', 'tu_custom_color_palettes' );
function tu_custom_color_palettes( $palettes ) {
$palettes = array(
'#8D07F6',
'#FFFFFF',
'#ADBCD9',
'#DCE4F2',
'#0476D9',
'#0487D9',
'#04D9D9',
'#F24C3D',
);
return $palettes;
}
Thanks Bruno
Original article here with the code:
https://docs.generatepress.com/article/generate_default_color_palettes/
Alternatively people use this plugin which allows you to control various other plugins pallets:
;-) it was a pleasure David
Thanks guys, it works.
However, it would be useful for something so crucial to be in the help documentation, this is a really basic function I would have expected as part of the theme.
Consider this sorted.
Sorry the filter is indeed listed in the documentation:
https://docs.generatepress.com/article/generate_default_color_palettes/
Am I missing something here?
This functionality really should be built in to the plugin without a filter. (Actually multiple filters.) A user-defined color palette should be available in the Customizer and the block editor.
Hi there,
we're looking into Global Color pallets in a future update.
Yes, I would love to be able to change GeneratePress (and maybe Gutenberg's) color palette's without coding. I love being able to set global colors in Elementor. It would also be great to use global variables (--e-global-color-primary: #066497;). Then, changing the primary color would update it everywhere. The plugin listed above is no longer supported.