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.

Latest From The Blog

setup packages

Introducing Setup Packages

By popular request, Dev4Press now includes setup packages that can be purchased along with the plugin licenses and include plugin setup and training with the Dev4Press Support team via Meet, Zoom, or Skype.
antispam wpforms

Fighting spam in WPForms Lite & Pro

WPForms is a very popular plugin for creating contact forms, and a free version is available in the WordPress.org repository. But both versions have very basic spam protection, and that's why coreSecurity Pro has an Antispam feature for the WPForms plugin.
gravity forms antispam results

Gravity Forms Antispam results

We have used the Gravity Forms plugin on Dev4Press for over ten years now, and having a good antispam solution is essential to keep contact form entries clean and not waste time sorting out what is spam or not.

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

SiteGround - Managed WordPress Hosting
Grammarly - Number 1 Writing App
36