Last active
December 14, 2020 16:27
-
-
Save yousufansa/6c77aadab57e22bb49956e6d2c7c4ceb to your computer and use it in GitHub Desktop.
WordPress 5.6 Update Editor Width Fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if( ! function_exists( 'wp_5_6_editor_wp_block_width_fix' ) ) { | |
function wp_5_6_editor_wp_block_width_fix() { | |
if( version_compare( get_bloginfo( 'version' ), '5.6', '>=' ) ) { | |
echo '<style>.interface-interface-skeleton__editor { max-width: 100%; }</style>'; | |
} | |
} | |
} | |
add_action( 'admin_head', 'wp_5_6_editor_wp_block_width_fix' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment