In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you how to add new colors to the WordPress background management interface, I believe most people do not know much about it, so share this article for your reference. I hope you will gain a lot after reading this article. Let's learn about it together.
From WordPress version 3.8, the background management interface uses the popular flat UI design, the background-user-my profile page, the default provides eight management interface color schemes for users to choose, but choose to always feel not in line with their own wishes, the omnipotent WordPress also takes into account this point, has been preset for us to add custom color matching function.
This function is located at line 3839 of the / wp-includes/general-template.php file:
Allows a plugin to register a new admin colour scheme. For example:wp_admin_css_color ('classic', _ (' Classic'), admin_url ("css/colors-classic.css"), array ('# 07273E,'# 14568A,'# D54E21,'# 2683AE'))
It's easy to have a ready-made function.
The first step is to create a new folder named css in the current theme and copy a copy of the colors.css from any folder in the wordpress\ wp-admin\ css\ colors directory into this css folder.
The second step is to add the following code to the current theme functions.php:
/ / add background color matching wp_admin_css_color ('my_css', _ (' new color matching'), / / text can be modified get_template_directory_uri (). '/ css/colors.css', array (' # 21252egoat,'# 2f3541,'# 3078ablation,'# 3690cf'), array ('base' = >' # e5f8ffffective, 'focus' = >' # fff', 'current' = >' # fff')
The third step is to change the color value in colors.css to whatever you like.
It is important to note that in the process of changing the style, you need to empty the browser cache at any time to see the effect of the change.
And so on, you can add multiple custom color schemes.
Using the above method, you can theoretically modify any style in the background, including hiding some unwanted features through display: none.
The added effect:
The above is all the contents of adding new color matching methods to the WordPress background management interface, thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.