Support

Account

Home Forums Backend Issues (wp-admin) How to hide WP content editor when one of buttons in buttons group is selected? Reply To: How to hide WP content editor when one of buttons in buttons group is selected?

  • You would need to add custom JavaScript that detects when the value of the selected value is changed and hides the editor. Sorry, I can’t give you code for this, it is not something I have ever done.

    I would suggest using a different method, for example different templates, and use the ACF setting to do this.

    You may be able to figure out how ACF does this by looking through the code, I’m pretty sure that ACF uses some combination of JS and CSS to hide the editor.