TinyMCE editor used in WordPress usually has to rows on its toolbar. But, the second row is hidden by default, and you need to click an icon on first toolbar row to open the second row.

TinyMCE Button to open the second row
TinyMCE Button to open the second row

If you want this second row to be open by default, here is a small piece of code to do that and it will affect every TinyMCE you have on your website:

function dev4press_tiny_mce_before_init($args) {
  $args['wordpress_adv_hidden'] = false;

  return $args;
}

add_filter('tiny_mce_before_init', 'dev4press_tiny_mce_before_init');

You can add this code in theme functions.php file.

Please wait...

About the author

MillaN
MillaN
Dev4Press owner and lead developer

Programmer since the age of 12 and now WordPress developer with more than 8 years of WordPress experience, author of more than 100 plugins and more than 20 themes.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *