Skip to content

Instantly share code, notes, and snippets.

@cheh
Forked from kovshenin/dashicons.php
Created January 22, 2014 12:05
Show Gist options
  • Save cheh/8557608 to your computer and use it in GitHub Desktop.
Save cheh/8557608 to your computer and use it in GitHub Desktop.
<?php
function set_custom_dashicon() {
?>
<style type="text/css">
#menu-posts-{post_type} .wp-menu-image:before {
content: '\f174';
}
</style>
<?php
}
add_action( 'admin_head', 'set_custom_dashicon' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment