Skip to content

Instantly share code, notes, and snippets.

@nickcernis
Last active September 12, 2018 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickcernis/2c0ef9342166f66a62065ba22fae0d81 to your computer and use it in GitHub Desktop.
Save nickcernis/2c0ef9342166f66a62065ba22fae0d81 to your computer and use it in GitHub Desktop.
Adds support for editor color palette for sites using the Genesis Framework.
<?php
// Do NOT include the opening php tag.
// Adds support for editor color palette.
add_theme_support( 'editor-color-palette', array(
array(
'name' => __( 'Light gray', 'genesis-sample' ),
'slug' => 'light-gray',
'color' => '#f5f5f5',
),
array(
'name' => __( 'Medium gray', 'genesis-sample' ),
'slug' => 'medium-gray',
'color' => '#999',
),
array(
'name' => __( 'Dark gray', 'genesis-sample' ),
'slug' => 'dark-gray',
'color' => '#333',
),
) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment