Last active
October 7, 2021 14:07
-
-
Save itsHall/73051c485cff04ca903b4bf55bc9d193 to your computer and use it in GitHub Desktop.
Make ACF WYSIWYG Fields Resizable With HTML Editor Syntax Highlighter Applied
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//-------------------------------------------------------------------------------// | |
// Make ACF WYSIWYG Fields Resizable With HTML Editor Syntax Highlighter Applied // | |
//-------------------------------------------------------------------------------// | |
add_action('admin_head', 'my_custom_styles'); | |
function my_custom_styles() { | |
echo '<style> | |
.CodeMirror { | |
resize: vertical; | |
overflow-y: auto !important; | |
} | |
</style>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Accompanies https://gist.github.com/itsHall/964e36a0f00b02e532b24873f76535ab