Fuller Classic Editor Toolbar
Always shows the second toolbar row in the classic editor and adds font size, highlight, subscript and superscript buttons.
Opens WPIDE on
Code
// Extra buttons for the second row.
$wpide_extra_mce_buttons = array( 'fontsizeselect', 'backcolor', 'subscript', 'superscript' );
add_filter( 'tiny_mce_before_init', function ( $init ) {
$init['wordpress_adv_hidden'] = false;
return $init;
} );
add_filter( 'mce_buttons_2', function ( $buttons ) use ( $wpide_extra_mce_buttons ) {
return array_values( array_unique( array_merge( $buttons, $wpide_extra_mce_buttons ) ) );
} );
Notes
Only affects the classic editor (and classic blocks).
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.