Skip to content

Instantly share code, notes, and snippets.

@carlosonweb
Created August 2, 2017 00:03
Show Gist options
  • Save carlosonweb/6e741dbf087d00c255efcd4c8103dfa6 to your computer and use it in GitHub Desktop.
Save carlosonweb/6e741dbf087d00c255efcd4c8103dfa6 to your computer and use it in GitHub Desktop.
Remove the Ace Editor in the BB Theme's Customizer Area
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