DEV Community

David Loor
David Loor

Posted on • Originally published at davidloor.com on

How to add custom CSS to the admin area in WordPress

1.- Create a css file in your custom theme where you want to add the styling.

2.- Implement the admin_enqueue_scripts action in a custom plugin or the functions.php file of your theme, like this:

/**
 * @return void
 */
function admin_style() {
    wp_enqueue_style('admin-styles', get_stylesheet_directory_uri().'/assets/css/admin-style.css');
}
add_action('admin_enqueue_scripts', 'admin_style');
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more