Created
August 1, 2016 11:23
-
-
Save gareth-gillman/af7f52e9a8cb39d4838ed102d008712c to your computer and use it in GitHub Desktop.
WP Admin Focus Full Width
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
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