Support

Account

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

Helping

How to hide WP content editor when one of buttons in buttons group is selected?

  • On my site I have button group. I would like to hide the default WP content editor only when one of those buttons is selected. How could I do that?

  • 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.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘How to hide WP content editor when one of buttons in buttons group is selected?’ is closed to new replies.