WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using add_filter('manage_posts_columns') in my plugin.php to add a column to the Edit Posts listing which is driven by edit.php. How can I attach a css style to the edit.php?

I want to be able to color the background of my column td.

share|improve this question
up vote 1 down vote accepted

Creating Admin Themes article in Codex shows you how to add css styles to admin pages

share|improve this answer

As helpful as the codex page linked to is, it unfortunately doesn't cover hooking onto a set page or pages, rather the examples given generally hook onto the admin_head, which will load your stylesheet for every admin page (you probably don't want that).

For hooking onto the edit posts screen, the following hook will do that for you..

add_action( 'admin_print_styles-edit.php', 'your-function-callback' );

Replace your-function-callback with the name of the function you wish to call with the action.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.