WordPress.org

Ready to get started?Download WordPress

Forums

Front-end Editor
[resolved] Is it possible to make default font size bigger? (8 posts)

  1. Jaya
    Member
    Posted 3 years ago #

    I've been using this awesome plugin for a while. The last time I updated it I noticed that the text has gone smaller a little in the editing box and I was wondering if there is a way to make it larger by default?

    Thank you in advance and have a great day!

  2. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    This is a side-effect of the fact that the new editor puts the content in an iframe, thus resetting all the default styles.

    To alter the default font, install the development version (1.9.3.1-alpha) and add the following code to your theme's functions.php:

    function fee_cleditor_css() {
    	return "font-size: 12px; font-family: Verdana";
    }
    add_filter( 'fee_cleditor_css', 'fee_cleditor_css' );

    In general, you can add any CSS property there.

  3. Jaya
    Member
    Posted 3 years ago #

    Thank you very much. Appreciate the help! I'll try what you suggested and let you know how it goes!

    Have a wonderful day!

  4. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    I didn't expect you would reply so quickly. You will have to wait about 15 minutes for the dev version to get refreshed, as I just updated it now.

  5. Jaya
    Member
    Posted 3 years ago #

    Oh no problem. I'll do that. Thank you again!

  6. Jaya
    Member
    Posted 3 years ago #

    Not sure what I'm doing wrong but i've installed the alpha version and added the code to the functions.php file like suggested without success. I did change the font size many times to a higher value and the result is the same. Any other ideas?

    Thank you!

  7. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    Ah, I forgot to re-compress the script.

    Re-download the development version (after 15 minutes) and it should work.

  8. Jaya
    Member
    Posted 3 years ago #

    That worked!

    Appreciate the help and support! Thank you again!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic