Custom editor color pallets appear in edit; not on saved front-end posts
-
Hi,
Using this link to help me edit color palettes on a site I’m working on:
…I successfully added a bunch of custom colors to the color picker in Gutenberg / edit mode for posts and pages. BUT when I select a color from this palette, it looks fine in edit mode but does not appear on the front-end after I’ve saved it.
When I click “custom color” link and select and other random color, and save the post, that random color appears.
Here is an example of the code I’ve added to the functions.php file (I list many more colors on the actual file):
function mychild_setup_theme_supported_features() { add_theme_support( 'editor-color-palette', array( array( 'name' => __( 'tangerine', 'mychild' ), 'slug' => 'tangerine', 'color' => '#e46644', ) ) ); } add_action( 'after_setup_theme', 'mychild_setup_theme_supported_features' );
The word “PHONE” should be orange in my example as seen in the first screenshot (LINK 1).
But it’s not (LINK 2).
LINK 1:
https://pasteboard.co/IWZG0u2.jpgLINK 2:
https://pasteboard.co/IWZGrml.jpgWhat am I doing wrong?
— I am using the free version of the Astra theme, btw.
Thanks in advance.
Beatty
- The topic ‘Custom editor color pallets appear in edit; not on saved front-end posts’ is closed to new replies.