• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How to add theme support for editor-color-palette to Sample 3.3.0

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › How to add theme support for editor-color-palette to Sample 3.3.0

This topic is: not resolved

Tagged: custom color palette

  • This topic has 3 replies, 2 voices, and was last updated 5 years, 4 months ago by bobeaston.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • April 19, 2020 at 10:52 am #498062
    bobeaston
    Participant

    I am using the Genesis Framework, 3.3.1 and Genesis Sample 3.3.0 for the child.
    "Out of the box" the theme makes 2 colors available to the Gutenberg editor, the primary theme color and the secondary.

    I am attempting to add additional colors to the palette using the code suggested by Brian Gardner in this article: https://studiopress.blog/theme-color-palette/

    After adding the code to the child theme's functions.php, nothing changes. There are still only the two colors. Is there something else in 3.3.0 blocking the change?

    FWIW, I'm working on a local development environment (Laragon) and using the Brave browser ... and yes, have cleared the browser cache, restarted the server, etc. etc. etc.

    Many thanks for any advice.

    April 19, 2020 at 11:41 am #498065
    bobeaston
    Participant

    Thanks...
    Yes, that is the code structure in Gardner's article (take a look).
    Doesn't work!
    Probably because of the code in appearance.php. I'll stuff my code in there unless someone has a better / real answer.

    December 20, 2020 at 1:13 pm #502351
    sanderson
    Participant

    Have you ever found an answer to your question? I'm struggling here just like you did.

    December 20, 2020 at 4:54 pm #502353
    bobeaston
    Participant

    Yes, I found the answer. I suspect Brian's article is old enough to not reflect changes made later. Current StudioPress themes include a config folder, which contains an appearance.php file. The editor color palette is defined in that file.

    As with all theme modifications, make the following change to a CHILD of the parent StudioPress theme. In your child theme, find the config folder and the appearance.php file within. Look for the "return" statement and modify as such... (short snippet, ask if you need more)

    'editor-color-palette' => [
    		[
    			'name' => __( 'navy', 'genesis-evaeaston' ),
    			'slug' => 'navy',
    			'color' => '#002060',
    		],
    		[
    			'name' => __( 'medium blue', 'genesis-evaeaston' ),
    			'slug' => 'link-blue',
    			'color' => '#0073e5',
    		],
    		[
    			'name' => __( 'bright blue', 'genesis-evaeaston' ),
    			'slug' => 'bright-blue',
    			'color' => '#0000ff',
    		],

    Happy coding!

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble