Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
add_action( 'admin_head-edit-tags.php', 'baw_admin_enqueue_styles' );
function baw_admin_enqueue_styles() {
global $taxnow;
if ( 'category' != $taxnow ) {
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; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment