A common problem we have with new Wordpress installations and particularly new users, is that their "Toolbar Toggle" button is not selected by default, and therefore the second line of the editor icons don't show.
Is there a way to force this option to always be selected?
A common problem we have with new Wordpress installations and particularly new users, is that their "Toolbar Toggle" button is not selected by default, and therefore the second line of the editor icons don't show.
Is there a way to force this option to always be selected?
Share Improve this question edited Apr 18, 2020 at 16:00 T.Todua 5,8809 gold badges52 silver badges81 bronze badges asked Nov 19, 2015 at 7:40 pixelkickspixelkicks 3091 gold badge5 silver badges12 bronze badges1 Answer
Reset to default 9Add below function in your activated theme's functions.php file.
function changeMceDefaults($in) {
// customize the buttons
$in['theme_advanced_buttons1'] = 'bold,italic,underline,bullist,numlist,hr,blockquote,link,unlink,justifyleft,justifycenter,justifyright,justifyfull,outdent,indent';
$in['theme_advanced_buttons2'] = 'formatselect,pastetext,pasteword,charmap,undo,redo';
// Keep the "kitchen sink" open
$in[ 'wordpress_adv_hidden' ] = FALSE;
return $in;
}
add_filter( 'tiny_mce_before_init', 'changeMceDefaults' );