Last active
December 18, 2015 09:29
-
-
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/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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