Add custom CSS to WordPress Admin

<?php add_action('admin_head', 'custom_css'); function custom_css() { echo '<link rel="stylesheet" href="' . get_template_directory_uri() . '/library/css/admin.css" />'; }
This snippet allows custom CSS file to be loaded into WordPress admin header. I set to the CSS path pointing to theme folder. This script should put inside functions.php in your theme.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.