You can target unread entries in the admin. They have a class of .lead_unread. You can use something like this:
[css]
.lead_unread td {
background-color: yellow;
}
That will target the unread entries. You want to add that CSS only to the admin pages though (adding that to your theme's stylesheet would not work.) You can use a function like this in your functions.php:
[php]
function load_custom_wp_admin_style() {
wp_register_style( 'custom_wp_admin_css', get_stylesheet_directory_uri() . '/wp-admin.css', false, get_bloginfo('version') );
wp_enqueue_style ( 'custom_wp_admin_css' );
}
add_action( 'admin_enqueue_scripts', 'load_custom_wp_admin_style' );
That will load a stylesheet called "wp-admin.css" in your admin pages only. The file would have to be located in your theme directory. And in it you would add just those couple lines I posted initially, targeting the unread entries. Here is the WordPress reference for wp_enqueue_style: http://codex.wordpress.org/Function_Reference/wp_enqueue_style
Posted 11 years ago on Monday February 4, 2013 |
Permalink