Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
<?php
add_action( 'admin_head-edit-tags.php', 'baw_admin_enqueue_styles' );
function baw_admin_enqueue_styles() {
global $taxnow;
if ( 'category' != $taxnow ) {
return;
}
add_action( 'admin_head', 'baw_term_colors_print_styles' );
}
function baw_term_colors_print_styles() {
?>
<style type="text/css">
.column-color { width: 50px; }
.column-color .color-block { display: inline-block; width: 28px; height: 28px; border: 1px solid #ddd; }
</style>
<?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment