Title here
Summary here
Add your own CSS styles to the WordPress admin area. Modify colors, layouts, fonts, spacing, or hide elements to create a customized admin experience that matches your brand or improves usability.
admin_head hook| Setting | Type | Description |
|---|---|---|
| CSS Code | Textarea | Your custom CSS for the WordPress admin area |
#wpcontent,
#wpbody-content {
font-size: 15px;
}body,
#wpcontent,
.wrap h1 {
font-family: 'Inter', -apple-system, sans-serif;
}/* Hide the "Thank you for creating with WordPress" footer */
#wpfooter {
display: none;
}
/* Hide Screen Options tab */
#screen-options-link-wrap {
display: none;
}.wrap {
max-width: 1400px;
}#post-body-content {
max-width: 900px;
}.form-required label {
color: #d63638;
font-weight: 600;
}.postbox .inside {
padding: 8px 12px;
}
.postbox .hndle {
padding: 8px 12px;
}To customize specific elements:
WordPress admin uses consistent class naming. Look for classes starting with wp-, .wrap, .postbox, #wpbody, and similar patterns.
| Element | Selector |
|---|---|
| Admin menu sidebar | #adminmenu |
| Admin bar | #wpadminbar |
| Main content area | #wpcontent |
| Page titles | .wrap h1 |
| Dashboard widgets | .postbox |
| Buttons (primary) | .button-primary |
| Notice boxes | .notice |
| Post editor | #post-body-content |
| Footer | #wpfooter |
After adding your CSS:
@import statements to load Google Fonts or other external stylesheets. Place them at the top of your CSS.!important to your declarations, or use more specific selectors. Check browser dev tools to see if your CSS is being overridden.Test your CSS changes in a staging environment before applying to production. Some admin pages have unique structures that may need specific targeting.
/* Dark admin background */
#wpcontent,
#wpbody-content,
.wrap {
background: #1e1e1e;
color: #e0e0e0;
}
/* Dark postboxes */
.postbox {
background: #2d2d2d;
border-color: #404040;
}
.postbox .hndle {
color: #e0e0e0;
}
/* Dark tables */
.widefat {
background: #2d2d2d;
border-color: #404040;
}
.widefat th,
.widefat td {
color: #e0e0e0;
border-color: #404040;
}Get access to all 147 modules with a single license