Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.