Skip to content

Instantly share code, notes, and snippets.

@gareth-gillman
Created August 1, 2016 11:23
Show Gist options
  • Save gareth-gillman/af7f52e9a8cb39d4838ed102d008712c to your computer and use it in GitHub Desktop.
Save gareth-gillman/af7f52e9a8cb39d4838ed102d008712c to your computer and use it in GitHub Desktop.
WP Admin Focus Full Width
function admin_css() {
echo '<style>
.focus-on #wpcontent {
margin-left:0;
width:100%;
}
. .focus-on ##wpbody-content .metabox-holder{
width:100%;
}
.focus-on #poststuff #post-body.columns-2 {
margin-right:20px;
}
.focus-on .wp-editor-expand div.mce-toolbar-grp,
.focus-on .wp-editor-expand #wp-content-editor-tools {
width:100% !important;
}
</style>';
}
add_action('admin_head', 'admin_css');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment