adding custom stylesheet to wp-admin

im having troubles getting my custom stylesheet work on WP-ADMIN area. plugins_url(‘style.css’, __FILE__) ); do i have to create folder in my plugins named css or do i just copy my .css to the wp-admin/css directory? i tried both it doesnt seem to work for me. and what values should be replaced to __FILE__? sorry … Read more

Adding Fields to the Category, Tag and Custom Taxonomy Edit Screen in the WordPress Admin?

The question is “How do I add one or more fields to the Category, Tag and Custom Taxonomy Edit Screen in the WordPress Admin?” This question was asked on the wp-hackers list August 1st 2010 and I offered a solution later that day. The original asker discussed the issue again today (Aug 21) which reminded … Read more

How to remove admin menu pages inserted by plugins?

I’ve got the following code, which cleans up a lot of stuff that is not going to be used within the admin area: add_action( ‘admin_menu’, ‘my_remove_menu_pages’ ); function my_remove_menu_pages() { remove_menu_page( ‘edit.php’ ); //Posts remove_menu_page( ‘upload.php’ ); //Media remove_menu_page( ‘edit-comments.php’ ); //Comments remove_menu_page( ‘themes.php’ ); //Appearance remove_menu_page( ‘users.php’ ); //Users remove_menu_page( ‘tools.php’ ); //Tools remove_menu_page( … Read more

How do I Enqueue styles/scripts on Certain /wp-admin Pages?

I have two simple functions that load stuff using wp_enqueue_style() and wp_enqueue_script(), something like these: function admin_custom_css() { wp_enqueue_style( ‘stylesheet_name’, ‘stylesheet.css’) }; function admin_custom_js { wp_enqueue_script( ‘javascript_file’, ‘script.js’) }; … and a few admin pages, created with add_menu_page() and add_submenu_page() function my_menu() { add_menu_page(‘Page 1’, ‘bar’, ‘something’, ‘else’, ‘foo’); add_submenu_page( ‘theme_menu’, ‘Subpage 1’, ‘Subpage’, ‘something’, … Read more