Add Admin CSS
- Author:Scott Reilly
- Version:1.1
- Last update:2011-11-18
- Compatibility:WP 3.0 – 3.3.2
- Comments:go here
- Download:[ zip ]
- Description:
Interface for easily defining additional CSS (inline and/or by URL) to be added to all administration pages.
-
Extended Description
Interface for easily defining additional CSS (inline and/or by URL) to be added to all administration pages.
Ever want to tweak the appearance of the WordPress admin pages, by hiding stuff, moving stuff around, changing fonts, colors, sizes, etc? Any modification you may want to do with CSS can easily be done via this plugin.
Using this plugin you’ll easily be able to define additional CSS (inline and/or files by URL) to be added to all administration pages. You can define CSS to appear inline in the admin head (within style tags), or reference CSS files to be linked (via “link rel=’stylesheet’” tags). The referenced CSS files will appear in the admin head first, listed in the order defined in the plugin’s settings. Then any inline CSS are added to the admin head. Both values can be filtered for advanced customization (see Advanced section).
Links: Plugin Homepage | Author Homepage
Find out more at the plugin’s WordPress Plugin Repository page.
-
Screenshots
Click to see full-size image.
Installation
- Unzip
add-admin-css.zipinside the/wp-content/plugins/directory for your site (or install via the built-in WordPress plugin installer) - Activate the plugin through the ‘Plugins’ admin menu in WordPress
- Go to “Appearance” -> “Admin CSS” and add some CSS to be added into all admin pages.
- Unzip
-
Advanced
You can also programmatically add to or customize any CSS defined in the “Admin CSS” field via the c2c_add_admin_css filter, like so:
add_filter( 'c2c_add_admin_css', 'my_admin_css' ); function my_admin_css( $css ) { $css .= " #site-heading a span { color:blue !important; } #favorite-actions { display:none; } "; return $css; }You can also programmatically add to or customize any referenced CSS files defined in the “Admin CSS Files” field via the c2c_add_admin_css_files filter, like so:
add_filter( 'c2c_add_admin_css_files', 'my_admin_css_files' ); function my_admin_css_files( $files ) { $files[] = 'http://yui.yahooapis.com/2.9.0/build/reset/reset-min.css'; return $files; }
Frequently Asked Questions
Q. Can I add CSS I defined via a file, or one that is hosted elsewhere?
A. Yes, via the “Admin CSS Files” input field on the plugin’s settings page.Q. Can I limit what admin pages the CSS applies to?
A. No, not presently. The CSS is added for every admin page on the site.Q. Can I limit what users the CSS applies to?
A. No, not presently. The CSS is added for any user that can enter the admin section of the site.
Release Log
1.1
- Rename class from ‘AddAdminCSS’ to ‘c2c_AddAdminCSS’
- Rename filter from ‘add_admin_css’ to ‘c2c_add_admin_css’
- Rename filter from ‘add_admin_css_files’ to ‘c2c_add_admin_css_files’
- Update plugin framework to 029
- Save a static version of itself in class variable $instance
- Deprecate use of global variable $c2c_add_admin_css to store instance
- Explicitly declare all functions as public
- Add __construct(), activation(), and uninstall()
- Note compatibility through WP 3.3+
- Drop compatibility with versions of WP older than 3.0
- Add .pot
- Add ‘Domain Path’ plugin header
- Minor code formatting changes (spacing)
- Update copyright date (2011)
- Add plugin homepage and author links in description in readme.txt
1.0
- Initial release (not publicly released)
Copyright & Disclaimer
Copyright © 2011 by Scott Reilly (aka coffee2code)Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

