Replace the default color palettes
-
Code for Custom Color Palettes not working.
// 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' );
code from: https://docs.oceanwp.org/article/483-add-custom-color-palettes-in-the-color-options
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Replace the default color palettes’ is closed to new replies.