Skip to content

Instantly share code, notes, and snippets.

@Zodiac1978
Last active February 4, 2021 21:11
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 Zodiac1978/ca064f748b72a69008dbf91cb1627846 to your computer and use it in GitHub Desktop.
Save Zodiac1978/ca064f748b72a69008dbf91cb1627846 to your computer and use it in GitHub Desktop.
Override editor colors in (twenty eleven) child theme
/*
Theme Name: Twenty Eleven
Description: Custom colors.
*/
body {
color: #fff;
background: #ddd;
}
<?php
/**
* Registers an editor stylesheet for the theme.
*/
function wpdocs_theme_add_editor_styles() {
add_editor_style( 'custom-editor-style.css' );
}
add_action( 'after_setup_theme', 'wpdocs_theme_add_editor_styles' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment