chrishajer

Add an admin stylesheet (WordPress)

Apr 8th, 2013
411
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.50 KB | None | 0 0
  1. <?php
  2. // http://www.gravityhelp.com/forums/topic/change-color-of-font-of-answers-in-admin-panel#post-195638
  3. // this relies on your stylesheet being located in your child theme directory with a name of wp-admin.css
  4. function load_custom_wp_admin_style() {
  5.     wp_register_style( 'custom_wp_admin_css', get_stylesheet_directory_uri() . '/wp-admin.css', false, get_bloginfo('version') );
  6.     wp_enqueue_style ( 'custom_wp_admin_css' );
  7. }
  8. add_action( 'admin_enqueue_scripts', 'load_custom_wp_admin_style' );
Advertisement
Add Comment
Please, Sign In to add comment