• Hello,
    Any way to permanently change default font and default size in tinymce advanced?
    Now is set to GEORGIA font and 12px size.. I want to change it permanently to VERDANA size 14px .
    Please any help would be appreciated!
    THANK YOU!!

Viewing 7 replies - 1 through 7 (of 7 total)
  • What do you mean? The visual and text editors?
    You could either do what it says in the settings:

    Advanced Options
    Create CSS classes menu
    Load the CSS classes used in editor-style.css and replace the Formats menu.
    ERROR: A stylesheet file named editor-style.css was not added by your theme. To use this option, add editor-style.css to your theme or a child theme. Enabling this option will also load that stylesheet in the editor.

    I get ERROR because ages ago we did this – make a css file and then load it from functions.php in the theme folder.

    css file named tinymce-visual-editor.css :

    /*Tiny MCE advanced visual editor font setting*/
    html .mceContentBody {
    	font-family: Verdana,Arial,Helvetica,sans-serif !important ;
    	font-size: 12px !important;
    }

    In functions.php:

    // Add styles to the WYSIWYG editor.  Function finds stylesheet from the root of the current theme's folder.   
    add_editor_style('tinymce-visual-editor.css');
    • This reply was modified 7 years, 6 months ago by digbymaass.
    • This reply was modified 7 years, 6 months ago by digbymaass.
    Thread Starter BILL4

    (@bill4)

    Thanks for the reply my friend..
    I did what you suggest, but nothing changed..
    Please take a look at the pic: https://oi66.tinypic.com/n64b2c.jpg to undestand what I want to do..
    Thanks.

    • This reply was modified 7 years, 6 months ago by BILL4.
    • This reply was modified 7 years, 6 months ago by BILL4.
    Plugin Author Andrew Ozz

    (@azaozz)

    As @digbymaass suggested, a good way to do that is to make an editor-style.css in your theme where you can define the font, size, line-height and anything else you want ??

    Bill4 it’s still a question of css. You may be able use the dashboard to set the theme default if it’s a WP one. Or you need to change the style used by whatever theme you are using by modifying the custom style sheet style.css in the theme’s folder. Find the body tag containing the font settings and change them to what you want.

    BILL4:

    Can you tell me what you did to solve the problem?? I have the same one, I do not want “georgia” font, I want “helvetica” and I do not command code…
    on the other hand, I do not find the the editor-style.css (Avada Theme) neither I know what to do with it… I have been force to swap from Joomla to WordPress and the whole thing is new to me…

    Thanks in advance
    Karin

    Thread Starter BILL4

    (@bill4)

    I did nothing my friend..
    It s a problem without solution I think..
    I cant find editor-style.css too, so I just stick with the problem..
    I am changing them manually.

    Dear Andrew Ozz, would you have a practical suggestion for us?? We are changing que font-family each time and besides being a bit tirening, it leads to any other less careful user to disregard this little task and publish with the font family we do not wish…
    Anticipated thanks for your attention,
    Karin

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘how to permanently change default font + size’ is closed to new replies.