Skip to content

Instantly share code, notes, and snippets.

@JulioPotier
Created November 13, 2015 01:31
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 JulioPotier/2e5e8c45ec43faf7c48f to your computer and use it in GitHub Desktop.
Save JulioPotier/2e5e8c45ec43faf7c48f to your computer and use it in GitHub Desktop.
<?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