Add Admin CSS

Add Admin CSS

Easily define additional CSS (inline and/or by URL) to be added to all administration pages.
Rating:
4.9
star-rating-1star-rating-2star-rating-3star-rating-4star-rating-5
Active Installations:
10000+
Last Updated:
May 31, 2021
WordPress Version:
4.9 or higher
Tested up to:
5.7.12

Customize WordPress Admin

Easily modify the appearance of WordPress admin pages by adding CSS.

Inline or Linked CSS

Add CSS inline or link CSS files to the admin head for customization.

Advanced Customization

Filter values for advanced customization of CSS styles.

Hook Filters

Use hook filters to programmatically modify CSS styles and files added to the admin pages.

2.0.1 (2021-05-30)

Highlights:

This recommended bugfix release addresses a potential conflict with other plugins that prevented the plugin settings page main content from being displayed.

Details:

  • Change: Update plugin framework to 063
    • Fix: Simplify settings initialization to prevent conflicts with other plugins
    • Change: Remove ability to detect plugin settings page before current screen is set, as it is no longer needed
    • Change: Enqueue thickbox during 'admin_enqueue_scripts' action instead of during 'init'
    • Change: Use is_plugin_admin_page() in help_tabs() instead of reproducing its functionality
    • Change: Trigger a debugging warning if is_plugin_admin_page() is used before 'admin_init' action is fired
  • New: Add new string (from plugin framework) for translation

2.0 (2021-05-12)

Highlights:

This recommended minor release updates the plugin framework, restructures unit test files, notes compatibility through 5.7+, and incorporates numerous minor behind-the-scenes tweaks.

Details:

  • Change: Outright support HTML5 rather than check for theme support of HTML5, since that isn’t relevant to admin
  • Change: Update plugin framework to 062
    • 062:
    • Change: Update is_plugin_admin_page() to use get_current_screen() when available
    • Change: Actually prevent object cloning and unserialization by throwing an error
    • Change: Check that there is a current screen before attempting to access its property
    • Change: Remove ‘type’ attribute from style tag
    • Change: Incorporate commonly defined styling for inline_textarea
    • 061:
    • Fix bug preventing settings from getting saved
    • 060:
    • Rename class from c2c_{PluginName}_Plugin_051 to c2c_Plugin_060
    • Move string translation handling into inheriting class making the plugin framework code plugin-agnostic
      • Add abstract function get_c2c_string() as a getter for translated strings
      • Replace all existing string usage with calls to get_c2c_string()
    • Handle WordPress’s deprecation of the use of the term “whitelist”
      • Change: Rename whitelist_options() to allowed_options()
      • Change: Use add_allowed_options() instead of deprecated add_option_whitelist() for WP 5.5+
      • Change: Hook allowed_options filter instead of deprecated whitelist_options for WP 5.5+
    • New: Add initial unit tests (currently just covering is_wp_version_cmp() and get_c2c_string())
    • Add is_wp_version_cmp() as a utility to compare current WP version against a given WP version
    • Refactor contextual_help() to be easier to read, and correct function docblocks
    • Don’t translate urlencoded donation email body text
    • Add inline comments for translators to clarify purpose of placeholders
    • Change PHP package name (make it singular)
    • Tweak inline function description
    • Note compatibility through WP 5.7+
    • Update copyright date (2021)
    • 051:
    • Allow setting integer input value to include commas
    • Use number_format_i18n() to format integer value within input field
    • Update link to coffee2code.com to be HTTPS
    • Update readme_url() to refer to plugin’s readme.txt on plugins.svn.wordpress.org
    • Remove defunct line of code
  • Change: Use plugin framework’s is_plugin_admin_page() instead of reinventing it
  • New: Add a recommendation for Add Admin JavaScript plugin to settings page
  • Change: Output the multiple tips on the settings page as a list instead of multiple paragraphs
  • Change: Prevent appending newline to value of setting passed to filter unless an actual value was configured
  • Change: Move translation of all parent class strings into main plugin file
  • Change: Tweak conditional checks to be more succinct
  • Change: Ensure there’s a current screen before attempting to get one of its properties
  • Change: Omit inline styles for settings now that plugin framework defines them
  • Change: Output newlines after paragraph tags in settings page
  • Change: Note compatibility through WP 5.7+
  • Change: Update copyright date (2021)
  • Change: Change plugin’s short description
  • Change: Tweak some readme.txt documentation
  • Change: Tweak some inline function and parameter documentation
  • Unit tests:
    • New: Add tests for JS files getting registered and enqueued
    • New: Add tests for add_codemirror()
    • New: Add help function get_css_files()
    • Change: Restructure unit test directories and files into tests/ top-level directory
    • Change: Remove ‘test-‘ prefix from unit test files
    • Change: In bootstrap, store path to plugin file constant so its value can be used within that file and in test file

1.9.1 (2020-09-25)

  • Change: Update plugin framework to 051
    • Allow setting integer input value to include commas
    • Use number_format_i18n() to format integer value within input field
    • Update link to coffee2code.com to be HTTPS
    • Update readme_url() to refer to plugin’s readme.txt on plugins.svn.wordpress.org
    • Remove defunct line of code
  • Change: Note compatibility through WP 5.5+
  • Change: Restructure unit test file structure
    • New: Create new subdirectory phpunit/ to house all files related to unit testing
    • Change: Move bin/ to phpunit/bin/
    • Change: Move tests/bootstrap.php to phpunit/
    • Change: Move tests/ to phpunit/tests/
    • Change: Rename phpunit.xml to phpunit.xml.dist per best practices

Full changelog is available in CHANGELOG.md.

Might work, who knows, didn't for my needs

By wordcrunch on August 12, 2022

Does not apply anything to the login page.

AWESOME

By mikeecho on April 9, 2022

Awesome plugin, works fantastic Well done!

Working great !!!

By ipchania on April 8, 2022

Working great !!!

footer CSS code

By Jak (123456jk) on November 7, 2021

Hi, I am a beginner and have no idea about CSS coding and wondered if someone can help with providing the CSS code to replace the footer color of the website with an image, thanks.

Worked perfectly

By Topher (topher1kenobe) on June 12, 2021

This plugin did *exactly* what I wanted. A plugin had dropped some ad stuff into the Publish box, but it had a good CSS class, so I just hid it. I really like that the text field for holding the CSS is intelligent and does things like auto include closing brackets, code coloring, etc.

This is a great plug-in.

By strettonbull on April 29, 2021

If you get fed up of all the nag screens from themes and plugins nagging you to "Go Pro" etc, then this is a great plugin for adding css to hide them all. Really easy to use.

Fantastic Plugin

By Hematoma (scuffed) on April 1, 2021

Fantastic plugin, perfect for editing your admin panel. Not needing to deal with the hassle of php. files is great. I just hope this plugin gets an update for wordpress 5.7 soon as some things seem to not be working as they used to. Regardless, thank you so much Scott for your amazing work!

Great plugin

By WillOfTheWeb on October 8, 2020

Great plugin and simple to use.

finally a simple and working plugin

By jessy86 on July 2, 2020

In the latest wordpress with woo, litterally all 4 major "admin customizer" plugins are full of bugs: certain items are hidden or not hidden without reason. This plugin is simple and clean, and just works ! Without all the hastle and long interfaces.

So glad I downloaded this

By francibambi on December 7, 2019

Very glad I tried this before faffing about with php files. Very easy – if you can use CSS, you can use this plugin.
Try other plugins too!

Admin Bar Position

This plugin can change bottom to "Admin Bar".

Try Demo More Details

View Admin As

View the WordPress admin as a different role or visitor, switch between users, temporarily change your capabilities, set screen settings for roles.

Try Demo More Details

Admin Dashboard Last Edits

Easy and lightweight solution for showing the last edited posts and pages on the admin dashboard.

Try Demo More Details
Screenshots
Author Site Author Site

Try Add Admin CSS With InstaWP

Contact Sales

Reach out to us to explore how InstaWP can benefit your business.