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.
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
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.
Related Posts
-
September 20, 2012
Popular
Editor’s Pick
-
November 28, 2011 45+ Unbelievable Landscape Photography Inspirations
Beach Grass, Scotland Marram beach grass blowing on the coast of the Isle of Lewis. Pampa – Santa Fe, Argentina Hengill Mountain, Iceland Hengill mountain is close to Reykjavik and is famous for its geothermal areas and vivid colours. Storm Clouds, South Dakota Large powerful storms can be nearly a daily occurrence during the summer…
-
February 4, 2010 20+ incredible Gigapixel Photography Inspirations
Gigapixel photography is a new trend that has come about in the last few years, creating 1,000+ megapixels of data in single images, cropped together to create a monstrous image. The detail and spectrum that can be captured in a Giga pixel image is unlike that of anything that a single camera can capture. For…
-
April 24, 2023 React Hooks Best Practices: How to Write Better and Cleaner Code
React Hooks are a new addition to the React library that allow developers to use state and other React features without writing classes. Hooks provide a simpler and more flexible way to write React components, making code easier to understand and maintain. By following React Hooks Best Practices, you can improve the quality and maintainability…
-
November 27, 2010 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…
-
December 7, 2010 20+ Amazing Time-lapse Photography Inspirations
Today i have come up with an interesting photography technique named “Time-lapse Photography”. It’s somewhat related to Long Exposure Photography, but here all the individual shots are combined together to form a slow motion video. In Time-lapse Photography, the same subject will be captured which will spread out over a period of time. Each frame…
