Add Custom Color Palettes in the Color Options

// Replace the default color palettes in the color picker
function my_custom_color_palettes( $palettes ) {
    $palettes = array(

	return $palettes;
add_filter( 'ocean_default_color_palettes', 'my_custom_color_palettes' );

You can also use the Central Color Palette plugin where you can add your own color palette for the WordPress editor, Elementor and the customizer color fields.

All PHP snippets should be added via a child theme's functions.php file.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.