Created
December 11, 2017 09:13
-
-
Save mrdavefoy/2e8842e89c4a710210013878ccbd5434 to your computer and use it in GitHub Desktop.
Color Picker Code—OceanWP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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