I just reinstalled my website with the same theme and now the other default colors are gone. Only black is left.

Is there a way to add more default colors?

1 Answer 1


You should be able to add more colors using the add_theme_support function as per the docs here

add_theme_support( 'editor-color-palette', array(
        'name' => __( 'strong magenta', 'themeLangDomain' ),
        'slug' => 'strong-magenta',
        'color' => '#a156b4',
        'name' => __( 'light grayish magenta', 'themeLangDomain' ),
        'slug' => 'light-grayish-magenta',
        'color' => '#d0a5db',
        'name' => __( 'very light gray', 'themeLangDomain' ),
         'slug' => 'very-light-gray',
        'color' => '#eee',
        'name' => __( 'very dark gray', 'themeLangDomain' ),
        'slug' => 'very-dark-gray',
        'color' => '#444',
) );

I hope it helps!

  • thanks. Is there a way to make a function that if I open that panel, then the second color with be automatically chosen?
    – Ooker
    Commented May 30, 2020 at 9:15
  • I'm not sure you can - perhaps make it the first item in the list?
    – Welcher
    Commented May 30, 2020 at 11:01
  • hmm, I thought the first item would be the default one. Say if I want the text to be normally black, I need to put black as the first one in the list. But even that, the first item is still not automatically chosen
    – Ooker
    Commented May 30, 2020 at 12:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.