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
/* | |
Title: Oxygen Code Editor Theme | |
Type: CSS > Compile SCSS Code | |
Location: Custom Hooks | |
Hook name: oxygen_enqueue_ui_scripts | |
Priority: 10 | |
*/ | |
#oxygen-ui { | |
.cm-s-default { |
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
/* | |
Title: Disable Gutenberg fullscreen mode | |
Type: JavaScript > Custom Code | |
Location: Custom Hooks | |
Hook name: enqueue_block_editor_assets | |
Priority: 10 | |
*/ | |
window.addEventListener('load', function() { | |
if (wp.data.select('core/edit-post').isFeatureActive('fullscreenMode')) { |
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
/* | |
Title: Load CF7 assets in whitelisted pages only | |
Type: PHP > Custom Code | |
Location: Plugins loaded | |
Priority: 10 | |
*/ | |
// stop loading Contact form 7 JavaScript and CSS files | |
add_filter('wpcf7_load_js', '__return_false'); | |
add_filter('wpcf7_load_css', '__return_false'); |