Yes. You just need to hook a function to enqueue your CSS file to the ‘admin_enqueue_scripts’ action.
In your child theme function file find admin_scripts function and inside it add wp_enqueue_style('custom-css', get_template_directory_uri() . '/your-file.css', [], time());
-
This reply was modified 5 months, 2 weeks ago by
Anmol Verma.
-
This reply was modified 5 months, 2 weeks ago by
Anmol Verma.
@anmolwpswings That’s really a bad idea – especially if your theme is not 100% custom made. If you do it this way any future updates to the theme will remove that completely, and you’ll be back to standard.
If you want to do this, create a child theme and add it to the child theme’s functions.php file. Or better yet create a small plugin and add it in there so it won’t ever be affected by theme changes in the future.
yes if @infernoprime has child theme then do it there
There are also plugins available for this, so you don’t need a child theme or PHP code. Just write CSS: https://wordpress.org/plugins/tags/admin-css/