[Support request] Issue Changing Default Color Palette

Home Forums Support Issue Changing Default Color Palette

  • This topic has 3 replies, 2 voices, and was last updated 4 months ago by David.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #1294843


    I’m fairly new to GP Pro and I need some help changing the default color palette. I am working on a new site, I’ve made it live so you can see it, but it has virtually no content.

    I have already tried to change the default color palette using the code snippets plugin and the following code, which I based on the GP documentation generate_default_color_palettes, but the original colors still appear when I go to write a post or page etc.

    I have attached an image showing my code (in snippets plugin) and an image of the unchanged default color palette.

    The site has a caching program WP Rocket, but I have cleared the cache and then deactivated the plugin to no avail.

    The code I used was:

    add_filter( 'generate_default_color_palettes', 'tu_custom_color_palettes' );
    function tu_custom_color_palettes( $palettes ) {
    	$palettes = array(
    	return $palettes;

    color code

    Thanks in advance

    Customer Support

    Hi David

    Thanks for your prompt reply.

    2 quick questions:

    1. Should I delete my earlier snippet?
    2. Should I use the same process? (snippets plugin)


    Customer Support

    1. You can keep your existing snippet as this controls the customizer colors.
    2. Yes, Snippets plugin will do the job 🙂

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