wordpress为dashboard添加样式

function my_admin_theme_style() {
    wp_enqueue_style('my-admin-style', get_template_directory_uri() . '/path/to/admin/style.css');
}
add_action('admin_enqueue_scripts', 'my_admin_theme_style');

http://css-tricks.com/snippets/wordpress/apply-custom-css-to-admin-area/

posted @ 2016-04-24 00:25  码不能停  阅读(299)  评论(0编辑  收藏  举报