Remove Admin Color Scheme Options From User Profile

Snippets by IsItWP

Do you want to remove admin color scheme options from user profile settings? You’ll find multiple color scheme in the admin profile section. While there’s probably a plugin for this, we have created a quick code snippet that you can use to remove admin color scheme options from user profile.


All you have to do is add this code to your theme’s functions.php file or in a site-specific plugin:

function admin_color_scheme() {
   global $_wp_admin_css_colors;
   $_wp_admin_css_colors = 0;
add_action('admin_head', 'admin_color_scheme');

Alternatively, you could use this snippet instead, which uses a different method. All you have to do is add this code to your theme’s functions.php file or in a site-specific plugin:

  remove_action("admin_color_scheme_picker", "admin_color_scheme_picker");

Note: If this is your first time adding code snippets in WordPress, then please refer to our guide on how to properly copy / paste code snippets in WordPress, so you don’t accidentally break your site.

If you liked this code snippet, please consider checking out our other articles on the site like: 43 best photography themes for WordPress and 9 best WordPress events plugins.

Comments  Leave a Reply

  1. NotMy RealName June 10, 2022 at 11:45 pm

    The solution for WordPress 6 is to use:

    $_wp_admin_css_colors = [];

    since it is expecting an array.

    1. Thank you so much… 🙂

    2. Thank you so much it is working now:

      function admin_color_scheme() {
      global $_wp_admin_css_colors;
      $_wp_admin_css_colors = [];
      add_action(‘admin_head’, ‘admin_color_scheme’);

  2. Thanks

    wordpress 6 eror wp-admin\user-edit.php on line 303

  3. Works on WordPress 3.8.1 also! Great code!

    1. Thanks for confirming this! I knew would work, but yeah…

  4. Awesome…this worked so well it was a “10 second fix”

  5. Dude, thank you very much, I’ve been banging my head against the wall trying to get rid of this schnizz!

  6. Daily Tip: How to Remove Admin Color Scheme Options in WordPress February 19, 2012 at 9:49 am

    […] snippet comes to you courtesy of Kevin Chard of WPsnipp.com. For more fun bits of code, check out the WordPress Code Snippets […]

  7. How can I add my own, new color schemes?

    1.  I would say the easiest way would be to use this plugin

  8. It’s still there. I’m also using the plugin Theme My Login. Any suggestions?

    1. Give this other method a try see if that works for you,
      The other option if not these would be to use css or jquery to hide it.

      1. I noticed that Theme My Login was using it’s own template, maybe that was making problems. I completely removed Profile Options from the profile editing template, so it’s not a problem anymore.

      2. Sounds great glad to hear you got things working. If you wanted post details on what method you used for the ‘my login’ plugin others may have a use for it as well.

      3. @edinchez:disqus, Thank you for your post; I would like to remove the color scheme options and I’m using Theme My Login; however, I didn’t understand what you did to resolve the issue.  Will you please describe it in more detail?

        Thank you,

      4. delete this, check above for the solution.

      5. First of all make a backup of:


        Then open it and delete the code from line 25 to line 62. This is to remove the whole Personal Options section. If you only want to remove the color scheme options section, delete the code from line 34 to line 40.

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!