css - Default styles editor wordpress -
i have wordpress site has styles made beginning affect original text editor wordpress .
for example:
if text editor , in "visual " tab, put left-aligned image , not align , assume class placing editor not exist. applies " p " tags have different styles placed editor ( "visual" tab).
having explained this, how put classes , original styles of "visual " tab of editor , functions should ?
any ideas ?
thank you
you can add custom stylesheet visual editor.
in theme functions.php :
function my_editor_styles() { add_editor_style( get_stylesheet_directory_uri() . '/css/custom-editor.css' ); } add_action('after_setup_theme', 'my_editor_styles');
then in custom-editor.css file, add rules in way prevent conflict wp admin:
body#tinymce.wp-editor p { color: red; }
Comments
Post a Comment