wordpress snippets last updated   : October 6, 2014
we now have 641 snippets

Remove admin color scheme options from user profile

wordpress snippet

This is an alternative method to the one I posted some time ago, “Remove admin color scheme picker from profile” Adding this snippet to the functions.php of your wordpress theme will remove the admin color scheme from the user profile.

snippet :  PHPcopy
function admin_color_scheme() {
   global $_wp_admin_css_colors;
   $_wp_admin_css_colors = 0;
}
add_action('admin_head', 'admin_color_scheme');

Did you like this post? If so please share it with your friends. Thanks!

  • Anonymous

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

    • http://wpsnipp.com Kevin Chard

      Give this other method a try see if that works for you,
      http://wpsnipp.com/index.php/functions-php/remove-admin-color-scheme-picker-from-profile/
      The other option if not these would be to use css or jquery to hide it.

      • Anonymous

        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.

      • http://wpsnipp.com Kevin Chard

        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.

      • James Carroll

        @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,
        James

      • Anonymous

        delete this, check above for the solution.

      • Anonymous

        First of all make a backup of:

        /wp-content/plugins/theme-my-login/templates/profile-form.php

        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.

  • http://www.cliffpaulick.com Cliff Paulick

    How can I add my own, new color schemes?

  • Pingback: Daily Tip: How to Remove Admin Color Scheme Options in WordPress

  • Banjo Stumbling

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

  • TastyPlacement

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

  • Websiteguy

    Works on WordPress 3.8.1 also! Great code!

    • kachan64

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