Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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 ('core/edit-post').isFeatureActive('fullscreenMode')) {'core/edit-post').toggleFeature('fullscreenMode');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment