From d063414fe400f95ebd8025c9b50848d5d94039de Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Fri, 13 May 2016 11:24:52 -0400 Subject: [PATCH] changing background color of tinymce editor --- functions.php | 9 ++++++++- tiny.css | 3 +++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 tiny.css diff --git a/functions.php b/functions.php index 5d06ea6..fc2403c 100644 --- a/functions.php +++ b/functions.php @@ -69,7 +69,14 @@ function glm_site_scripts() } } - +// Add custom styles to TinyMCE editor +if ( ! function_exists('tinyMceEditor_css') ) { + function tinyMceEditor_css($wp) { + $wp .= ',' . get_bloginfo('stylesheet_directory') . '/tiny.css'; + return $wp; + } +} +add_filter( 'mce_css', 'tinyMceEditor_css' ); /* Header for posts*/ function glm_get_background() { diff --git a/tiny.css b/tiny.css new file mode 100644 index 0000000..7517a11 --- /dev/null +++ b/tiny.css @@ -0,0 +1,3 @@ +.mceContentBody.wp-editor { + background-color: #C6C6C6; +} \ No newline at end of file -- 2.17.1