Last active
August 29, 2015 14:03
-
-
Save davidvandenbor/fd5a69390b0a959b5d1f to your computer and use it in GitHub Desktop.
WordPress: hide parts of WP admin with CSS
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
<?php | |
/** | |
* Hide parts of WP admin with CSS. Awesome! Use in functions.php | |
* CSS code gebruiken om delen van de admin voor klanten te verbergen | |
* @author @david | |
*/ | |
function david_admin_head() { | |
echo '<link href="'.get_bloginfo( 'template_url' ).'/wp-admin.css" rel="stylesheet" type="text/css">'; | |
} | |
add_action('admin_head', 'david_admin_head'); | |
?> |
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
/* | |
@david : | |
Deze stylesheet wordt aangeroepen in functions.php | |
en is bedoeld om via CSS items in de WordPress Admin | |
te verbergen of aan te passen. | |
This stylesheet is used to hide parts of WP Admin with CSS, | |
and is enqueued in functions.php. | |
*/ | |
/*See some examples below :-)*/ | |
/* @plugin really Simple Share plugin */ | |
#poststuff_right { | |
display: none | |
} | |
/*#dashboard_right_now, | |
#dashboard_recent_comments, | |
#dashboard_quick_press, | |
#dashboard_primary, | |
#dashboard_secondary, | |
#menu-links, | |
#menu-pages, | |
#wp-admin-bar-new-content, | |
#wp-admin-bar-comments, */ | |
#menu-appearance a.wp-has-current-submenu:after, | |
#menu-appearance li:nth-child(1), | |
#menu-appearance li:nth-child(2), | |
#menu-appearance li:nth-child(3), | |
#menu-appearance li:nth-child(6) | |
{display:none;} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment