2 posts
  • 6 Years of Membership
  • Author Level 1
  • Collector Level 1
  • Exclusive Author
NoirSentiment
says

Hello Everyone!

I was trying to create more than 15 custom TinyMCE buttons, but after the 15th button, the row just overflowed. I was wondering if anyone knows a way to create second row for buttons?

Thanks in advance! :)

470 posts
  • Trendsetter
  • Weekly Top Seller
  • Exclusive Author
  • 6 Years of Membership
+8 more
SaurabhSharma
says
function add_buttons() {  
    if ( current_user_can('edit_posts') &&  current_user_can('edit_pages') )  
    {  
      add_filter('mce_external_plugins', 'add_plugins');  
      add_filter('mce_buttons_3', 'register_buttons');
    }  
 }

Use mce_buttons_3. That should work.

2 posts
  • 6 Years of Membership
  • Author Level 1
  • Collector Level 1
  • Exclusive Author
NoirSentiment
says

Thank you so much! :)

438 posts
  • 5 Years of Membership
  • Exclusive Author
  • United States
christopherjon
says

The best practice is to create new rows and keep them the same length as the first two rows.

The WP dashboard was designed for a minimum 1024px width. Adding a lot of buttons to the first two rows messes up the dashboard for anybody with a 1024 or smaller monitor.

by
by
by
by
by
by