Home › Forums › General Issues › How to set a custom height for WYSIWYG? › Reply To: How to set a custom height for WYSIWYG?
Hey @elliot,
I actually have tried using .acf_wysiwyg iframe too, that was my mistake that I didn’t mention it above. But what exactly would I use if I wanted to set the height to 15px? I tried:
.acf_wysiwyg iframe {
min-height:0;
height:15px;
}
But it seems like WordPress won’t allow the WYSIWYG field area to be anywhere near that short. It won’t even let me click and drag the bottom right corner to make it shorter than what looks like around a height of 100px. I ended up hacking it a bit more using this to get what I wanted:
.acf_wysiwyg iframe {
height: 15px;
min-height: 15px;
overflow: hidden;
}
.acf_wysiwyg .wp-editor-container {
height:70px;
overflow: hidden;
}
Let me know if there’s a better way of doing this. Also, where exactly should I be editing this code? Right now I’m just using a custom function in my functions.php file that adds the custom css to the admin’s head.
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.