- This topic has 8 replies, 3 voices, and was last updated 1 year, 6 months ago by
David.
-
AuthorPosts
-
January 23, 2020 at 1:06 am #1141054
Len
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?
January 23, 2020 at 2:23 am #1141123newmedianewpeople.com
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;
}January 23, 2020 at 4:20 am #1141243David
StaffCustomer SupportThanks 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:
https://en-gb.wordpress.org/plugins/kt-tinymce-color-grid/
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 23, 2020 at 4:34 am #1141255newmedianewpeople.com
😉 it was a pleasure David
January 23, 2020 at 5:35 am #1141296Len
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.January 23, 2020 at 9:37 am #1141711Leo
StaffCustomer SupportSorry the filter is indeed listed in the documentation:
https://docs.generatepress.com/article/generate_default_color_palettes/Am I missing something here?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/March 15, 2021 at 4:41 pm #1696603Greg
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.
March 16, 2021 at 5:17 am #1697159David
StaffCustomer SupportHi there,
we’re looking into Global Color pallets in a future update.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/July 8, 2021 at 8:30 am #1849060David
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.
-
AuthorPosts
- You must be logged in to reply to this topic.