Skip to content

Instantly share code, notes, and snippets.

@proweb
Created May 9, 2017 11:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save proweb/1f31bebe01f08e52917372a00ade219e to your computer and use it in GitHub Desktop.
Save proweb/1f31bebe01f08e52917372a00ade219e to your computer and use it in GitHub Desktop.
Add colors to admin posts status
add_action('admin_footer','posts_status_color');
function posts_status_color() { ?>
<style>
.status-draft{background: #FCE3F2 !important;}
.status-pending{background: #87C5D6 !important;}
.status-publish{/* no background keep wp alternating colors */}
.status-future{background: #C6EBF5 !important;}
.status-private{background:#F2D46F;}
</style>
<?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment