Color Post Rows by Status
Tints draft, pending, scheduled and private rows in admin list tables so unpublished content stands out at a glance.
Opens WPIDE on
Code
.wp-list-table tr.status-draft { background-color: #fcf9e8; }
.wp-list-table tr.status-pending { background-color: #fcf0f1; }
.wp-list-table tr.status-future { background-color: #f0f6fc; }
.wp-list-table tr.status-private { background-color: #f6f7f7; }
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.