• Resolved digbymaass

    (@digbymaass)


    I had a wee line in functions.php to use a css file to customise the font in the visual editor –

    // Add styles to the WYSIWYG editor.
    add_editor_style(‘tinymce-visual-editor.css’);

    Now it’s not working. Can you please suggest a re-wording?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter digbymaass

    (@digbymaass)

    Or is it the css?
    I’m trying:

    body#tinymce.mce-content-body {
    	font-family: Verdana,Arial,Helvetica,sans-serif !important ;
    	font-size: 12px !important;
    }
    
    body#tinymce.wp-editor { 
        font-family: Verdana,Arial,Helvetica,sans-serif !important; 
        font-size: 12px !important; 
    }
    Thread Starter digbymaass

    (@digbymaass)

    I think I fixed it. Originally I had html .mceContentBody. It needs the hyphens.

    html .mce-Content-Body {
    	font-family: Verdana,Arial,Helvetica,sans-serif !important ;
    	font-size: 12px !important;
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘4.9 causes unwanted font in visual editor’ is closed to new replies.