How to add custom css WordPress Admin Dashboard

We can add custom CSS to the WordPress Admin Dashboard by follow these steps:

  1. Log in to your WordPress Admin Dashboard.
  2. Go to the Appearance > Editor menu.
  3. Select the file “functions.php” from the list of theme files on the right-hand side.
  4. Scroll to the bottom of the file and add the following code:
    function custom_admin_style() {
    echo '<style>
    /* add your custom css code here */
    </style>';
    }
    add_action('admin_head', 'custom_admin_style');
  5. Replace “/* add your custom css code here */” with your actual CSS code.
  6. Save the changes.

Your custom CSS code will now be applied to the WordPress Admin Dashboard. Please note that any changes made to the theme files may be overwritten during a theme update, so it’s recommended to create a child theme and add the custom CSS code to the child theme’s functions.php file.

 

 

Pin It on Pinterest

Shares
Share This