The Stiz Media, LLC

Making your website work for you

  • Styles for Genesis
    • FAQs
  • Cart
  • My Account
  • Home
  • Web Design
  • Portfolio
  • Resources
  • Blog
  • Contact

Powerful websites, with style.

You are here: Home / Tutorials / Remove Buttons/Items From The WordPress TinyMCE Editor

Remove Buttons/Items From The WordPress TinyMCE Editor

May 7, 2016 JiveDig 9 Comments

Remove Items from TinyMCE editor

Sometimes you have a client that really thinks they are a designer, and reeeaaalllly wants everything to be pink. Or centered, justified, bold, etc. Did I already mention pink? On some occasions it’s better for the client, and their business/blog, if they didn’t have the ability to do that stuff.

I’m currently rebuilding a site for a new client that wants everything pink. Everything. Seriously. I decided it may be worth disabling the font color option from the TinyMCE editor in WordPress. I googled a bit and found Tom McFarlin’s post, which got me halfway there. But his filter only removes items from the kitchen sink. I wanted to remove buttons from the main row of the editor too.

Tom’s code uses the mce_buttons_2 filter. I figured the “_2” meant it was filtering the “second row”, so I googled a bit and found a slew of filters for the WP editor.

I dumped all the data, and found what I was looking for. Here is a snippet to optionally remove buttons from both rows of the WordPress TinyMCE editor. Please note, this removes ALL the buttons, so only remove the ones you’d like.

Related Posts

  • Radio button toggles
    Radio buttons as toggle buttons with CSS
  • Remove Avatar
    Remove Avatar from Genesis Author Box
  • Remove The Comma Between Categories And Tags In Genesis

Tutorials

‹ Responsive background image aspect ratio with content overlay
ACF Extras officially launched! A community of code snippets and field groups ›

About JiveDig

Howdy, I'm Mike Hemberger. I like to build nice websites and web apps with WordPress and Genesis Framework.

Feel free to email, and you'll be speaking directly with me.

Try The Most Powerful Genesis Child Theme Ever Created

Mai Theme is the most customizable Genesis child theme (and plugin!) available. Check it out now!

Learn More @ MaiTheme.com

Our posts, directly to your inbox

Comments

  1. Chris Pink says

    January 10, 2018 at 9:39 am

    Simple, useful, works. Thank you

    I too see no need to give the client a font colour button. (How about a Comic Sans button instead?)

    Reply
  2. BOLA OSSU says

    June 30, 2018 at 12:11 pm

    hi
    Very useful .

    is there another way doing this , making by default all button hidden, and then only allow specified button in function.

    Why ? because i am thinking of the case where the user(client) may have possibility to install plugin that automatically add button …

    will those new button be displayed or hidden

    Thanks

    Reply
  3. Bekah says

    July 5, 2018 at 4:47 am

    Thanks for sharing this, Mike! I’ve been trying for a while now to get control of the TinyMCE toolbar and this was by far the clearest explanation I’ve found.

    Reply
  4. Ted says

    July 22, 2018 at 12:18 pm

    I found your code at github and just stopping by to say… Thank You! I’m using on a multisite network and it works great. I started by commenting out all the buttons in the code, then simply uncomment the buttons I want to remove. In this way I can limit what buttons bloggers have access to across the network. Simple and effective.

    Reply
  5. Ink says

    August 15, 2018 at 4:22 pm

    thanks a lot , very useful!

    JB

    Reply
  6. Jenni says

    October 5, 2018 at 6:46 am

    This was exactly what I was in need of. Thanks a bunch Sir.

    Reply
  7. Ralf says

    February 20, 2019 at 9:42 am

    Hi, thanks for this! Ist there a complete list of codes somewhere? Specifically, I’m looking for font size and family …

    Reply
    • JiveDig says

      February 20, 2019 at 9:59 am

      I’m not sure if those are built in. Also, with the new block editor in WP 5.0, I’m not sure this is as relevant anymore.

      Reply
  8. Phoenix Kiula says

    July 26, 2019 at 12:21 pm

    The “formatselect” seems to be in the first row now, and if I remove it, it seems to not work. Any ideas? Using WP 5.3.

    Reply

Leave a Reply Cancel reply

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

Our posts, directly to your inbox


Howdy, I'm Mike Hemberger. I like to build nice websites and web apps with WordPress and Genesis Framework.

I'm passionate about everything I do, and it resonates in all of my work.

Feel free to email, and you'll be speaking directly with me.

Recent Posts

Restful P2P Example

Create Posts 2 Posts ‘connections’ with the WordPress Rest API

EA Share Count SMS button

Add SMS share button to EA Share Count plugin

ACF Extras

ACF Extras officially launched! A community of code snippets and field groups

Remove Items from TinyMCE editor

Remove Buttons/Items From The WordPress TinyMCE Editor

  • My Account
  • Affiliate Area
  • Log In
  • GitHub
  • Google+
  • Instagram
  • Twitter
  • YouTube
, 12 Russling Rd., Hackettstown 07840

Copyright © 2023 · The Stiz Media, LLC · All Rights Reserved

Copyright © 2023 · The Stiz Media on Genesis Framework · WordPress · Log in