Last active
September 12, 2018 18:48
-
-
Save nickcernis/2c0ef9342166f66a62065ba22fae0d81 to your computer and use it in GitHub Desktop.
Adds support for editor color palette for sites using the Genesis Framework.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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