In the WordPress control panel, when writing a new post, I would like to disable the Header 1 and Header 2 from the text formatting combobox, because I already use them on my theme (h1 for blog name and h2 for post titles), and would like to keep all headers inside a post with h3 or higher. Is that possible?
It doesn’t matter for the case if the code can be edited in the HTML view. Also, I don’t want to edit WordPress internal files, so a hack for functions.php or a plugin would be great for this task, in order to preserve this change across future updates.
Thank you!
you can change lots of things about the tinyMCE editor at the tiny_mce_before_init filter.
http://codex.wordpress.org/TinyMCE_Custom_Buttons
the following will restrict your blockformats to p,h3,h4 and blockquote
EDIT for WordPress 3.9 see link
This is a quick and dirty solution but it may work if your objective is to disable H1 and H2.
Add this code to your functions.php file
Heading 1 and Heading 2 should be hidden now.