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 = 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!

9
Last updated Jan 3, 2021 @ 12:55 pm

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.
Divi Adventure Club Product And Course Membership by Pee Aye Creative

Become A Member!

Gain access to everything we offer!

Learn More

Recent Posts

Leave A Response!

Subscribe
Notify of
guest
4 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Barrie Simpson
Barrie Simpson
6 months ago

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

Carl Cyphers
Carl Cyphers
4 months ago

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

Shop Our Divi Products

Plugins • Courses • Templates

Visit The Shop

Divi Adventure Club Product And Course Membership by Pee Aye Creative

Become A Member!

Gain access to everything we offer!

Learn More

Divi Tutorials On YouTube

Join over 4,700 others and subscribe to our helpful Divi videos!

Visit Our Channel

Pin It on Pinterest

0

Your Cart