• I want to spice up the admin a bit since its very bland to look at. I want it to look something like this Image Link

    Can I just take the stylesheet and load it in the admin area?

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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

    Moderator threadi

    (@threadi)

    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/

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.