2013-01-25 61 views
1

如何更新默认的WordPress主题定制工具栏CSS,以便我可以例如更改默认黑色的文本颜色。WordPress主题定制工具栏CSS

默认勾添加管理员CSS似乎并不在这里工作add_action('admin_head', 'custom_admin_css');

因此,例如#theme-description ID,可改变成另一种颜色,但如何?我真的想添加一些CSS到自定义选项,而不是粘贴很多混乱的代码我试图保持简单的问题,所以如果我可以改变这个CSS然后我可以为我创建CSS需要。

非常感谢

回答

1

你可以尝试customize_controls_print_styles挂钩,我认为:

function theme_customizer_css() { ?> 
    <style> 
     // Custom Styles in here 
    </style> 
<?php } 
add_action('customize_controls_print_styles', 'theme_customizer_css');