[Resolved] Default colours

Home Forums Support Default colours

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #352245
    David

    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?

    GeneratePress 1.3.48
    GP Premium 1.3.1
    #352437
    Tom
    Lead Developer
    Lead Developer

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

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