Skip to content

Instantly share code, notes, and snippets.

@fearlex
Last active October 1, 2016 03:46
Show Gist options
  • Save fearlex/64acc617b5e8ee20f9bc to your computer and use it in GitHub Desktop.
Save fearlex/64acc617b5e8ee20f9bc to your computer and use it in GitHub Desktop.
Restore WP separators
/**
* Restore Wordpress Separators
*/
function SLUG_admin_separators()
{
echo '<style type="text/css">
#adminmenu li.wp-menu-separator {margin: 0;}
.admin-color-fresh #adminmenu li.wp-menu-separator {background: #444;}
.admin-color-midnight #adminmenu li.wp-menu-separator {background: #4a5258;}
.admin-color-light #adminmenu li.wp-menu-separator {background: #c2c2c2;}
.admin-color-blue #adminmenu li.wp-menu-separator {background: #3c85a0;}
.admin-color-coffee #adminmenu li.wp-menu-separator {background: #83766d;}
.admin-color-ectoplasm #adminmenu li.wp-menu-separator {background: #715d8d;}
.admin-color-ocean #adminmenu li.wp-menu-separator {background: #8ca8af;}
.admin-color-sunrise #adminmenu li.wp-menu-separator {background: #a43d39;}
</style>';
}
add_action( 'admin_head', 'SLUG_admin_separators' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment