/* Custom CSS styles on WYSIWYG Editor - Start ======================================= */ if ( ! function_exists( 'myCustomTinyMCE') ) : function myCustomTinyMCE($init) { $init['theme_advanced_disable'] = 'outdent, indent, justifyleft, justifycenter, justifyright, justifyfull, bullist, numlist, outdent, indent, fontselect, fontsizeselect, forecolor, backcolor, forecolorpicker, backcolorpicker, formatselect'; // Removes the undesired buttons $init['theme_advanced_buttons2_add_before'] = 'styleselect'; // Adds the buttons at the begining. (theme_advanced_buttons2_add adds them at the end) $init['theme_advanced_styles'] = 'Float Left=fleft,Float Right=fright'; return $init; } endif; add_filter('tiny_mce_before_init', 'myCustomTinyMCE' ); add_filter( 'mce_css', 'tdav_css' ); add_editor_style('mycustomstyles.css'); // including the Custom CSS on our theme. function mycustomStyles(){ wp_enqueue_style( 'myCustomStyles', get_bloginfo('stylesheet_directory').'/mycustomstyles.css', '','','all' ); /*adjust this path if you place "mycustomstyles.css" in a different folder than the theme's root.*/ } add_action('init', 'mycustomStyles'); /* Custom CSS styles on WYSIWYG Editor - End ======================================= */