Hello, where/how exactly are you trying to add your own CSS? Via your theme?
-
This reply was modified 8 years, 12 months ago by
Jeff Starr. Reason: added question
Thread Starter
w3code
(@w3code)
Yes, in my own theme stylesheet (I’ve developed my own theme).
Awesome, in order to apply styles to the Admin Area, you need to enqueue using a specific hook. Here is a search that should help get you there:
https://www.google.com/#q=wordpress+add+styles+to+admin+area
More specifically, here is the hook to use:
https://codex.ww.wp.xz.cn/Plugin_API/Action_Reference/admin_enqueue_scripts
-
This reply was modified 8 years, 11 months ago by
Jeff Starr. Reason: added infos
Thread Starter
w3code
(@w3code)
@spcialk: Thank you very much!
From your special link above (WordPress Codex) I’ve tried the following hook:
function load_custom_wp_admin_style() {
wp_register_style( ‘custom_wp_admin_css’, get_template_directory_uri() . ‘/admin-style.css’, false, ‘1.0.0’ );
wp_enqueue_style( ‘custom_wp_admin_css’ );
}
add_action( ‘admin_enqueue_scripts’, ‘load_custom_wp_admin_style’ );
and I created this file in my themes’ parent directory:
admin-style.css
and applied the style for the notes background. It works! 🙂
-
This reply was modified 8 years, 11 months ago by
w3code.
Yep, WordPress is awesome that way 🙂