Last active
July 27, 2020 00:16
-
-
Save utkrishta/247bfe4a4883265e478c9bb17ed1570c to your computer and use it in GitHub Desktop.
Load/Enqueue custom CSS for WP Admin Dashboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Update CSS within Admin Dashboard | |
function admin_style() { | |
wp_enqueue_style( 'admin-styles', get_template_directory_uri() . '/css/admin.min.css' ); | |
//change filename and/or url as required | |
} | |
add_action( 'admin_enqueue_scripts', 'admin_style' ); //load on admin pages | |
add_action('login_enqueue_scripts', 'admin_style'); //load on login page | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment