From: Anthony Talarico Date: Fri, 9 Sep 2016 15:27:20 +0000 (-0400) Subject: changing visual editor background color to make the white logos in the blocks visible X-Git-Tag: v1.0.0^2~70 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=ad881e183dbbafa5995da0e8988d52c97917594d;p=WP-Themes%2Fcapstone.git changing visual editor background color to make the white logos in the blocks visible --- diff --git a/functions.php b/functions.php index 8b7b8c5..a943e94 100644 --- a/functions.php +++ b/functions.php @@ -221,4 +221,14 @@ add_filter( 'custom_page_templates', function( $now_templates ) { // } else { // echo "

The current template used is:".get_page_template_slug( $post->ID )."

"; // } + +// 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' ); + ?> 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