Skip to content

Instantly share code, notes, and snippets.

@codescribblr
Created February 13, 2014 21:41
Show Gist options
  • Save codescribblr/8984430 to your computer and use it in GitHub Desktop.
Save codescribblr/8984430 to your computer and use it in GitHub Desktop.
Add custom styles to visual editor Wordpress
// Add custom CTA styles to TinyMCE editor
if ( ! function_exists('tdav_css') ) {
function tdav_css($wp) {
$wp .= ',' . get_bloginfo('stylesheet_directory') . '/css/tinymce.css';
return $wp;
}
}
add_filter( 'mce_css', 'tdav_css' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment