• <?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)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Try this – revised code’ is closed to new replies.