[Support request] Colour Palette Settings

Home Forums Support [Support request] Colour Palette Settings

Home Forums Support Colour Palette Settings

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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?

    #1141123
    newmedianewpeople.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;
    }

    #1141243
    David
    Staff
    Customer Support

    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:

    https://en-gb.wordpress.org/plugins/kt-tinymce-color-grid/

    #1141255
    newmedianewpeople.com

    😉 it was a pleasure David

    #1141296
    Len

    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.

    #1141711
    Leo
    Staff
    Customer Support

    Sorry the filter is indeed listed in the documentation:
    https://docs.generatepress.com/article/generate_default_color_palettes/

    Am I missing something here?

    #1696603
    Greg

    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.

    #1697159
    David
    Staff
    Customer Support

    Hi there,

    we’re looking into Global Color pallets in a future update.

    #1849060
    David

    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.

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.