Blog Post

Open TinyMCE editor second row by default

TinyMCE editor used in WordPress usually has two 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

Milan Petrovic
Milan Petrovic

CEO and Lead developer of Dev4Press Web Development company, working with WordPress since 2008, first as a freelancer, later founding own development company. Author of more than 250 plugins and more than 20 themes.

Subscribe to Dev4Press Newsletter

Get the latest announcements, release digests, promotions and exclusive discounts, and general Dev4Press-related news straight into your mailbox.


This form collects your email (optionally your name) for the purpose of sending you newsletters. Check out our Privacy Policy for more information on how we store and manage your data. We will not send you any spam. Newsletters are sent 2 to 4 times every month.

2 thoughts on “Open TinyMCE editor second row by default”

  1. Hi,

    TinyMCE editor used in WordPress usually has “to” rows on its…

    You probably would like to change that to two. It’s a costly punctuation typo I spotted and thought I should mention it out to you.

    Please wait...
    Reply
    • Thanks, fixed!

      Please wait...
      Reply

Leave a Comment

Grammarly - Number 1 Writing App
GeneratePress - The perfect lightweight theme for your next project
36