Code by Day | Explore By Weekend
How To Permanently Turn Off The WordPress Fullscreen Edit Mode In Divi Tutorial by Pee Aye Creative

How To Permanently Turn Off The WordPress Fullscreen Edit Mode

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

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 = 'core/edit-post' ).isFeatureActive( 'fullscreenMode' ); if ( isFullscreenMode ) { '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!


Please share this post!

Nelson Lee Miller (aka The Divi Teacher)

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

Join Our NEW Divi Facebook Group!

The Divi Teacher Logo

Recent Posts

Leave A Response!

Notify of
Newest Most Voted
Inline Feedbacks
View all comments
Barrie Simpson
Barrie Simpson
1 month ago

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

Shop Our Divi Products!

Child Themes • Plugins • Layouts

Visit The Shop

become partners with Pee Aye Creative

Partner With Us

We are looking for you!

Learn More

Divi Tutorials On YouTube

Subscribe to our helpful Divi videos!

Visit Our Channel

Pin It on Pinterest


Your Cart