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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.