You can stylize the dashboard admin area with the custom CSS. Here is the snippet code you need to paste into functions.php file. Replace the comment with your custom code.
“admin_head is an action event and can be hooked by add_action hook. The action refers on the admin area and everything you include here will be applied only on the admin side. ”
add_action('admin_head', 'my_custom_acode');
function my_custom_acode() {
echo '<style>
/* your code here */
</style>';
}
Does this snippet (still) work?
Please let us know in the comments if everything worked as expected. We have tested this code with the Version: 4.0.1 of the Divi Theme and Divi Friendly Hosting with PHP 7.3 and WordPress 5.2.4.
If you think this code saved you time, we will be happy to receive a comment!
____
License: This snippet is from https://codex.wordpress.org, copyright WordPress, Licensed under the GNU General Public License, no warranty; click here for details.
Child themes are incredibly important for the overall look, feel, and navigation of your website, so we encourage you to take the time to get to know the content. This will help your web design and development processes tremendously. That’s why we’ve made it super easy to build a child theme for Divi or Extra in seconds!
There are four ways you can add JavaScript or jQuery to a Divi website: use the code module, the Divi Theme Options console, enqueue scripts using the functions.php file, or using a plugin.
Divi users can choose between five different methods to add custom CSS to their websites. Read more about these various methods you can use to add custom CSS to your Divi theme, as well as better understand the pros and cons of each method.
perfect
It works perfectly. Thank you
Hi,
It works perfectly. I opted to separate it and put it in an external file and use wp_enqueue_style() for better future maintenances.
J