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 code snippet to your Divi child theme. If you don’t have one yet, you can use our basic free child theme here.

Go to the functions.php file in the child theme. You can access this by ing to Appearance>Theme Editor. Paste the following code snippet there below any other existing code in that file.

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

Last updated [last-modified %date%]

Subscribe

Each month we send out a roundup email newsletter with the latest tutorials, product updates, helpful resources, and any other industry or personal news. Occasionally we send an extra separate email here and there if we just can’t wait! So that’s what you will get if you subscribe, and you can always unsubscribe at any time if you just can’t take it anymore :)

Blog Post Optin

Please share this post!

Nelson Lee Miller (aka The Divi Teacher)

Nelson is the owner of Pee-Aye Creative in the beautiful state of Pennsylvania. He loves helping small businesses, exploring outdoors, building websites with Divi, and teaching others.

Leave A Response!

By commenting you agree to our Blog & YouTube Comments Policy

4 Comments

  1. Barrie Simpson

    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