Home › Forums › ACF PRO › Wysiwyg editor height is too tall › Reply To: Wysiwyg editor height is too tall
Thanks for the post.
It is possible to modify the dimensions of the WYSIWYG editor by hooking into the acf/input/admin_head action and passing some new styles.
Please have a look at this example:
add_action('acf/input/admin_head', 'lh_acf_admin_head');
function lh_acf_admin_head() {
?>
<style type="text/css">
.acf-field-5639b8dd6170b .acf-editor-wrap iframe {
height: 150px !important;
min-height: 150px;
}
.acf-field-5639b8dd6170b .acf-editor-wrap .mce-fullscreen iframe{
height: 700px !important;
min-height: 700px;
}
</style>
<?php
}
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.