Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add theme support and set a color palette for all blocks
<?php
function mytheme_setup_theme_supported_features() {
add_theme_support( 'editor-color-palette',
'#556270',
'#4ECDC4',
'#C7F464',
'#FF6B6B',
'#C44D58',
);
}
add_action( 'after_setup_theme', 'mytheme_setup_theme_supported_features' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment