Title: Try this &#8211; revised code
Last modified: January 11, 2019

---

# Try this – revised code

 *  [anmari](https://wordpress.org/support/users/anmari/)
 * (@anmari)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/try-this-revised-code/)
 *     ```
       <?php
       /**
        * Plugin Name: Block Editor Full Width 
        * Description: Fix the block editor width to full size
        */
   
       add_action('admin_head', 'block_editor_full_width');
   
       function block_editor_full_width() {
         echo '<style>
         .wp-block {
       	  width: 100% !important;
       	  max-width: none !important;}
         .editor-styles-wrapper .editor-writing-flow {  
       	  max-width: none !important;
       	  margin: 0 !important;}
       }
         </style>';
       }
       ```
   

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [shewter](https://wordpress.org/support/users/shewter/)
 * (@shewter)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/try-this-revised-code/#post-11084745)
 * Works perfectly! Thank you!
 *  [willwenzel](https://wordpress.org/support/users/willwenzel/)
 * (@willwenzel)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/try-this-revised-code/#post-11085082)
 * Thank you – that’s great!
 *  [Blamedutchie](https://wordpress.org/support/users/blamedutchie/)
 * (@blamedutchie)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/try-this-revised-code/#post-11123795)
 * This rocks, thank you [@anmari](https://wordpress.org/support/users/anmari/) !
 *  [notasausage](https://wordpress.org/support/users/notasausage/)
 * (@notasausage)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/try-this-revised-code/#post-11167753)
 * Just created a new plugin from this block of code and installed it on a WordPress
   5.0.3 site using Gutenberg blocks, no issues so far. Personally I prefer a max-
   width though since I keep my browser wide on a 27″ iMac, but this is much better
   than the default width.
 *  [jgatto](https://wordpress.org/support/users/jgatto/)
 * (@jgatto)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/try-this-revised-code/#post-11752191)
 * Many thanks, [@anmari](https://wordpress.org/support/users/anmari/)!
 * I think this _should_ be one of a few built-in to WordPress. J.
    -  This reply was modified 6 years, 10 months ago by [jgatto](https://wordpress.org/support/users/jgatto/).
    -  This reply was modified 6 years, 10 months ago by [jgatto](https://wordpress.org/support/users/jgatto/).

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Try this – revised code’ is closed to new replies.

 * ![](https://ps.w.org/editor-full-width/assets/icon-256x256.png?rev=1944792)
 * [Editor Full Width Gutenberg](https://wordpress.org/plugins/editor-full-width/)
 * [Support Threads](https://wordpress.org/support/plugin/editor-full-width/)
 * [Active Topics](https://wordpress.org/support/plugin/editor-full-width/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/editor-full-width/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/editor-full-width/reviews/)

## Tags

 * [editing](https://wordpress.org/support/topic-tag/editing/)
 * [full-width](https://wordpress.org/support/topic-tag/full-width/)

 * 5 replies
 * 6 participants
 * Last reply from: [jgatto](https://wordpress.org/support/users/jgatto/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/try-this-revised-code/#post-11752191)
 * Status: not a support question