Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Modify TinyMCE editor to hide H1.
- function tiny_mce_remove_unused_formats( $initFormats ) {
- // Add block format elements you want to show in dropdown
- $initFormats['block_formats'] = 'Paragraph=p;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre';
- return $initFormats;
- }
- add_filter( 'tiny_mce_before_init', 'tiny_mce_remove_unused_formats' );
Add Comment
Please, Sign In to add comment