Unlock font size and font select in your wordpress editor

*This doesn’t seem to work for the newer versions of WordPress(above 3.7.x). I’ve made a new plugin for them here.

I find the fact that fontsize and fontselector menus are locked by default in wordpress text editor very frustrating.  Nevertheless unlocking them is very easy(so I decided that it is worth of writing a wordpress tutorial  about it) I`ll post the code you need to use. You can either do it by adding it to functions.php of your theme or as a separate plugin. As I said the fix is very easy and you`ll finally be able to properly customize your posts.

<?php
/*
Plugin Name: TinyMCE Edits
Plugin URI: http://webbamboo.net/
Description: Advanced menus in TinyMCE
Version: 0.1
Author: Pavel (aka Immortal) Petrov
Author URI: http://webbamboo.net/
License: Creative Commons Attribution-ShareAlike
Tags: wordpress tinymce
*/
function add_mce_buttons($buttons){
 array_push($buttons, "fontsizeselect");
 array_push($buttons, "fontselect");
 return $buttons;
}
add_filter("mce_buttons", "add_mce_buttons");

?>

In the following posts I`ll cover how to easily add google fonts to your wordpress editor.