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
-
December 28, 2009 70+ Stunning HDR images with useful Photoshop Tutorials
High Dynamic Range Imaging ( HDRI or just HDR ) is a technique which was developed to produce high dynamic range images from the photographs taken at different exposures of light. In comparison with normal digital imaging techniques HDR imaging techniques can produce a wider range of luminescence between dark and light. The main intention…
-
January 11, 2010 Ultimate Twitter Tools and resources
Twitter, the micro-blogging platform that has taken the Internet by storm, has so much to offer the online entrepreneur or personal user, yet is misunderstood by many people. Twitter not only allows you to tell the world “what I am doing right now” via its web interface, but can also be integrated and enhanced by…
-
February 19, 2010 200+ Ultimate Collection of Photoshop Plugins
Photoshop is a powerful image editing software which is very useful for web designers and photographers to create desired effects in the images. But sometimes it’s difficult to perform certain tasks manually in photoshop. Once there was a belief that only designers who have mastered photoshop can create special effects on photographs or images. But…
-
April 22, 2023 Mastering Webpack Module Federation: A Comprehensive Guide for Modern Application Development
Introduction Welcome to this comprehensive guide on mastering Webpack Module Federation for modern application development. In this guide, we’ll dive into the world of Webpack and explore its Module Federation feature in-depth. Definition of Webpack Module Federation Webpack Module Federation is a feature of the Webpack module bundler that allows developers to share code and…
-
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…
