Skip to content

Instantly share code, notes, and snippets.

@verticalgrain
Created March 3, 2015 19:13
Show Gist options
  • Save verticalgrain/9d518cacf09a0beff2bd to your computer and use it in GitHub Desktop.
Save verticalgrain/9d518cacf09a0beff2bd to your computer and use it in GitHub Desktop.
Add CSS styles to WP admin
// Add some styles to the admin end
function admin_styles() {
echo '<style type="text/css">
#menu-comments, #menu-links, #menu-media, #menu-dashboard { display:none; }
</style>';
}
add_action('admin_head', 'admin_styles');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment