Skip to content

Instantly share code, notes, and snippets.

@mrdavefoy
Created December 11, 2017 09:13
Show Gist options
  • Save mrdavefoy/2e8842e89c4a710210013878ccbd5434 to your computer and use it in GitHub Desktop.
Save mrdavefoy/2e8842e89c4a710210013878ccbd5434 to your computer and use it in GitHub Desktop.
Color Picker Code—OceanWP
// Replace the default color palettes in the color picker
function my_custom_color_palettes( $palettes ) {
$palettes = array(
'#000000',
'#ffffff',
'#f44336',
'#03a9f4',
'#00bcd4',
'#ffeb3b',
'#ffc107',
'#ff9800',
);
return $palettes;
}
add_filter( 'ocean_default_color_palettes', 'my_custom_color_palettes' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment