carsonf92 of Speak Creative
6/25/2019 - 6:35 PM

Edit width of the Gutenberg Editor

Use to adjust the max width of content blocks displayed in the dashboard view of WordPress.

/**
 * Dashboard styles
 *  */
add_action('admin_head', 'dashboard_styles');

function dashboard_styles() {
  echo '<style>
	  .wp-block { max-width: 1024px; }
	  .wp-block[data-align="wide"] { max-width: 1200px; }
	  .wp-block[data-align="full"] { max-width: none; }
  </style>';
}