Force Admin Color Scheme

Description

Though usually an individually configurable aspect of WordPress, there are times when forcing a single admin color schemes upon all users of a site can be warranted, such as to:

  • Provide a unique backend color scheme for multiple sites used by the same set of users to reinforce the difference between the sites.
  • Clearly denote backend differences between a production and staging/test instance of a site. Especially given that in this situation with the same plugins active and often the same data present, it can be easy to get mixed up about what site you’re actually on.
  • Force a site branding appropriate color scheme.
  • Crush the expression of individuality under your iron fist.

Additionally, the plugin removes the “Admin Color Scheme” profile setting from users who don’t have the capability to set the admin color scheme globally since being able to set its value gives them the false impression that it may actually apply.

Links: Plugin Homepage | Plugin Directory Page | Author Homepage

Screenshots

  • A screenshot of the profile page for an administrative user who has the checkbox to force an admin color scheme on users.

Installation

  1. Unzip force-admin-color-scheme.zip inside the plugins directory for your site (typically /wp-content/plugins/). Or install via the built-in WordPress plugin installer)
  2. Activate the plugin through the ‘Plugins’ admin menu in WordPress
  3. As an admin, edit your own profile (Users -> Your Profile) and choose the Admin Color Scheme you want to apply to all users by setting the color scheme for yourself.
  4. Check the “Force this admin color scheme on all users?” checkbox and then save the update to your profile.

FAQ

Why isn’t everyone seeing the same admin color scheme after activating this plugin?

Have you followed all of the installation instructions? You must configure the forced admin color scheme by setting the color scheme for yourself while also checking the “Force this admin color scheme?” checkbox.

How do I resume letting users pick their own color schemes?

Uncheck the “Force this admin color scheme?” when updating an administrative profile, or deactivate the plugin.

Does this plugin include unit tests?

Yes.

Reviews

Does exactly what it sais it does

We use this plugin, to get a consistent branding for our customers. Together with “Admin Color Schemer” it gives us the ability to make sure that the client sees their panel in either their site colors, or our company colors without us having to worry, they will accidently change it.

I often also pair this plugin with “WP Admin UI Customize” to brand the login-screen and keep less tech-savvy clients from being overwhelmed by the options WordPress offers.

Those three are my go-to plugins for branding my sites and keeping the user-experience consistent.

Read all 1 review

Contributors & Developers

“Force Admin Color Scheme” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.1 (2016-03-09)

  • New: Add get_setting_name() as a getter for plugin’s setting name and use it everywhere internally instead of referencing private class variable.
  • New: Add set_forced_admin_color() as a setter for forced admin color. Deletes setting if value is falsey.
  • New: Delete plugin setting on uninstall.
  • New: Add unit tests.
  • Change: Reimplement how the color picker is hidden from non-administrative users.
    • Rewrite hide_admin_color_input().
    • Remove restore_wp_admin_css_colors().
    • Remove private static variable $_wp_admin_css_colors.
  • Change: When the checkbox is submitted unchecked, delete the forced admin color value.
  • Change: When a forced admin color is set, have the checkbox checked.
  • Change: Hook ‘admin_init’ rather than ‘init’ for initialization.
  • Change: Escape use of setting name in markup attributes as an extra precaution.
  • Change: Allow class to be defined even when loaded outside the admin.
  • Change: Add left padding to input label so the input aligns with color picker colors.
  • Change: Remove extra help text associated with checkbox as it was no longer necessary.
  • Change: Add support for language packs:
    • Change textdomain from ‘c2c-facs’ to ‘force-admin-color-scheme’.
    • Don’t load plugin translations from file.
    • Remove ‘Domain Path’ from plugin header.
  • Change: Add inline docs for class variable.
  • Change: Minor code and inline documentation reformatting (spacing).
  • New: Create empty index.php to prevent files from being listed if web server has enabled directory listings.
  • Change: Drop support for versions of WP older than 4.1.
  • Change: Note compatibility through WP 4.4+.
  • Change: Update copyright date (2016).

1.0 (2014-09-26)

  • Initial release