Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. //Adding this snippet to the functions.php of your wordpress theme will change the background colors of the post / page within
  2. //the admin based on the current status. Draft, Pending, Published, Future, Private.
  3.  
  4. add_action('admin_footer','posts_status_color');
  5. function posts_status_color(){
  6. ?>
  7. <style>
  8. .status-draft{background: #FCE3F2 !important;}
  9. .status-pending{background: #87C5D6 !important;}
  10. .status-publish{/* no background keep wp alternating colors */}
  11. .status-future{background: #C6EBF5 !important;}
  12. .status-private{background:#F2D46F;}
  13. </style>
  14. <?php
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement