How To Permanently Disable The WordPress Fullscreen Edit Mode In Divi Tutorial by Pee Aye Creative

How To Permanently Turn Off The WordPress Fullscreen Edit Mode

Nelson Miller Pee Aye Creative
This quick code snippet will permanently turn off and disable the annoying full screen WordPress edit mode that was introduced in WordPress 5.4.

Join subscribers on our YouTube channel and enjoy other Divi video tutorials!

Disable The WordPress Fullscreen Editor

All we have to do is add the following PHP code snippet to your website.

Where To Paste The PHP Code

1. Divi Assistant
If you are using our Divi Assistant plugin, simply paste the code in the PHP tab in the custom code window in the Divi Visual Builder.

2. Child Theme
If you are using a child theme, paste this code into the functions.php file. If you don't have a child theme, you can generate a child theme directly on your site or download our free child theme.

3. Code Snippet Plugins
Otherwise, install a dedicated code snippet plugin, create a new snippet, and paste this code into the PHP code editor.

If you need help understanding where to paste the code, please check out our complete guide about where to add custom PHP code snippets in Divi.

if (is_admin()) { 
    function pa_disable_fullscreen_wp_editor() {
    $script = "jQuery( window ).load(function() { const isFullscreenMode = wp.data.select( 'core/edit-post' ).isFeatureActive( 'fullscreenMode' ); if ( isFullscreenMode ) { wp.data.dispatch( 'core/edit-post' ).toggleFeature( 'fullscreenMode' ); } });";
    wp_add_inline_script( 'wp-blocks', $script );
}
add_action( 'enqueue_block_editor_assets', 'pa_disable_fullscreen_wp_editor' );
}

That’s all you have to do! Now you won’t be bothered by it, and it should never show up again when you create new posts or pages!

how to Disable WordPress Fullscreen Editor using the Divi Assistant plugin

Subscribe For More Things Like This!

At the start of each month, we send out a recap newsletter from the month before with family news, Divi news, our latest tutorials, and product news. Occasionally, if the news is too exciting to wait, we will send out another email separate from the monthly newsletter. That’s what you get when you subscribe, and of course you can unsubscribe if you are no longer interested!

Blog Post Optin

Please share this post!

Leave A Response!

By commenting you agree to our Blog & YouTube Comments Policy

4 Comments

  1. Barrie Simpson <span class="comment-author-role-label"><a href="https://www.peeayecreative.com/product/divi-adventure-club/" class="comment-author-role-link" rel="external nofollow" target="_blank">Divi Adventure Club Member</a></span>

    Excellent, Nelson another of your little gems to be had. Keep ’em coming when you have the time!

    Reply
  2. Carl Cyphers

    Nelson, This is a perfect solution. I was sick and tired of manually changing it every time.

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

Recent Posts

0

Your Cart