Change Default Colors in Color Palette

The default colors in the color palette can be changed using the filter astra_color_palettes This custom Color Palette will be visible under each color picker after you add –

Here is a snippet which you can add to your site as a PHP snippet.

function your_prefix_astra_color_palettes() {

  $color_palettes = array(
 '#ffffff',
 '#f6f7f8',
 '#222222',
 '#666666',
 '#0970f7',
 '#001cbf',
 '#00a55d',
 '#8e009b',
  );
  
  return $color_palettes;
}

add_filter( 'astra_color_palettes', 'your_prefix_astra_color_palettes' );

Here’s how the color palette at the bottom of the Color Picker will look –

Not the solution you are looking for? Check other articles, or open a support ticket.