Support » Theme: Neve » Change color picker palette in functions.php with my own scheme

  • Resolved Calin MANESCU


    Hi, before i used astra and with a code entered in functions.php (following the instructions from here:, i was able to change the color picker colors in wordpress customizer with my own color scheme.
    I tried the same in Neve, replacing astra with neve, but it doesnt work:
    function ohu_custom_palettes($color_palettes) {
    $color_palettes = array(

    return $color_palettes;

    add_filter(‘neve_color_palettes’, ‘ohu_custom_palettes’);


    What should i do?


Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey @atelieruldeweb ,

    I’ll leave the solution to that below. Just note that this will work for the classic color pickers – i.e. it’s not available for the other color controls unfortunately, at least at the moment.

    add_action( 'customize_controls_enqueue_scripts', 'neve__custom_color_palettes' );
     * Adds custom color palettes to wp.color picker.
    function neve__custom_color_palettes() {
    	$color_palettes = json_encode(
    	wp_add_inline_script( 'wp-color-picker', 'jQuery.wp.wpColorPicker.prototype.options.palettes = ' . $color_palettes . ';' );

    Have an awesome day!

    • This reply was modified 5 months, 2 weeks ago by Andrei Baicus.

    Thanks, i solved it with a plugin called Central Color Palette, which allows more options. Anyway, good to have an elegant code solution at hand too. Thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.