Skip to content

Instantly share code, notes, and snippets.

@Perun
Last active December 18, 2015 09:29
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 Perun/5761799 to your computer and use it in GitHub Desktop.
Save Perun/5761799 to your computer and use it in GitHub Desktop.
Farbliche Hervorhebung (nach Art und Zustand) der Beiträge in der Übersicht im Backend. #WordPress In der zweiten Date ist der Code, wenn man nur die geplanten Artikel hervorheben möchte. Siehe http://www.perun.net/2013/06/12/wordpress-artikel-in-der-admin-uebersicht-je-nach-zustand-farblich-hervorheben/
<?php
add_action('admin_footer','posts_status_color');
function posts_status_color() {
echo "<style>
.status-draft{background: #fc9 !important;}
.status-pending{background: #6cc !important;}
.status-publish{/* am besten keine Angabe um wechselnden Farbangaben zu lassen */}
.status-future{background: #cf0 !important;}
.status-private{background: #ffc;}
</style>";
}
?>
<?php
add_action('admin_footer','posts_status_color');
function posts_status_color() {
echo "<style>
.status-future{background: #cf0 !important;}
</style>";
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment