Theme Functions, Wordpress

Tips to Remove Admin Color options Scheme in WordPress

2 46

Today I have come up with an very easy snippet. In WordPress you would have noticed in your profile page, there is an option to change the WordPress Dashboard Color Scheme. I bet very rarely people will use this option. So I thought to remove this option to make the profile page very simple to users.

You can remove this Color Scheme option by two ways:

Adding Code to Functions.php

Go to your theme functions.php file. And add the following code in the functions.php to remove the Admin color scheme options.

PHP Snippet

function admin_color_scheme() {

   global $_wp_admin_css_colors;

   $_wp_admin_css_colors = 0;

}

add_action('admin_head', 'admin_color_scheme');

Alternative

Another Alternative way to remove the admin color scheme options panel is by inserting the following code into the functions.php

PHP Snippet
if(is_admin()){

  remove_action("admin_color_scheme_picker", "admin_color_scheme_picker");

}

I hope that you liked this simple snippet. I will keep posting some more tricky code hacks for WordPress soon.

About the author / 

admin

Related Posts

Popular

Editor’s Pick

  • Mastering the Art of Newborn Sleep: Proven Tips for Better Sleep in the First Week

    Congratulations on your new arrival! As a new parent, you’ll quickly realize that one of the biggest challenges of caring for your newborn is ensuring they get enough sleep. In their first week of life, newborns typically sleep for 16-17 hours a day, but it can be difficult to establish a sleep routine that works…

  • 16 useful Mac cheat Sheets

    Cheat sheet is a concise set of notes used for quick reference. Cheat sheets will contain most of the shortcuts needed to program faster. And it is meant for newbie users who can’t remember the shortcuts or commands. In this article , I have collected some of the useful cheat sheets available for Mac OS….

  • Tips to shoot excellent Panoramic Photographs

    Recently, making out panoramic photos has become much easier as your software stitches them quite beautifully together. Photoshop is quite skillful and master in doing that; it has got a command called Photo Merge that weaves your photos once you hit it. Now, software is mere medium which we use to ease our post works,…

  • Read More hack for Blogger with automatic Thumbnail creator script

    You might have noticed that since few weeks I have been using a strange script which enables us to summarize content and show only the summary with a thumbnail in Home Page , Archives page and Labels page. Since some of my readers requested this hack in gtalk , so I am going to explain…

  • 45+ Online Image Editors and Funny Photo Effects Creators

    Before the development of web, if someone wants to edit images then he must either buy an image editing software like photoshop or he must use some free image editors available. Then the advancement in web development has enabled the developers to provide the features of offline software in web. At the beginning of web…