2013-01-25 59 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');