What I’d like to do is have the entire row be a different color – for example, a light blue for draft posts. That way I can visually see at a glance what’s a draft, what’s scheduled, and what’s published on a given time period (I am working on a system for scheduling posts out weeks in advance).

It would seem the logical way to do this is to alter the row color, since there is a CSS class (“status-draft”) for example. However, it appears that altering the row color doesn’t work since the individual cells as well have overriding colors.

Thoughts?

2 Answers
2

you mean something like this?

enter image description here

then here you go:

add_action('admin_footer','style_posts_list');
function style_posts_list(){
?>
<style>
.status-draft{background-color: #008866 !important;}
.status-pending{background-color: #F53162 !important;}
.status-publish{background-color: #FFF700 !important;}
<?php
}

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *