Font size in WordPress TinyMCE

Paul from MiC requested a font size selector in his WordPress TinyMCE config. Turned out to not be so hard after all ... this change was to WordPress 2.0.4

  1. Edit wp-includes/js/tinymce/tiny_mce_gzip.php
  2. Find the line which contains $mce_buttons = apply_filters('mce_buttons', array( /* lots of options here */ ) ;
  3. Insert your new buttons into this list - for me this meant adding 'fontsize_select', 'separator' after the first 'separator'.

Simple ... but also worth documenting as there seem to be a few questions on this topic around. LucidGreen has a post on further WordPress TinyMCE customisation too.

Comments

Various comments on the

Various comments on the Lucid Green page give us better ways of doing this.

There is some more complete documentation in the WordPress Codex now too.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre> <code> <br> <h2> <h3> <h4> <h5> <h6>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.