Created
August 2, 2017 00:03
-
-
Save carlosonweb/6e741dbf087d00c255efcd4c8103dfa6 to your computer and use it in GitHub Desktop.
Remove the Ace Editor in the BB Theme's Customizer Area
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
add_action( 'customize_controls_print_scripts', function(){ | |
?> | |
<style id='no-ace-editor-style'> | |
#customize-control-fl-js-code textarea, | |
#customize-control-fl-head-code textarea, | |
#customize-control-fl-header-code textarea, | |
#customize-control-fl-footer-code textarea{ | |
display: block !important; | |
} | |
</style> | |
<script id='no-ace-editor-script'> | |
jQuery(document).ready(function($){ | |
$('#customize-control-fl-js-code .fl-code-editor').remove(); | |
$('#customize-control-fl-head-code .fl-code-editor').remove(); | |
$('#customize-control-fl-header-code .fl-code-editor').remove(); | |
$('#customize-control-fl-footer-code .fl-code-editor').remove(); | |
}); | |
</script> | |
<?php | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment