When I was putting together my WordPress portfolio plugin, Portfolion, I designed an icon for it in the typical WordPress icon style. I thought that I would release the PSD files as it is hard to find good WordPress icons. All the layers are preserved, so anyone that may want to use it can modify the colors and add to it as they please.
Time for the free stuff. The layered PSD files can be downloaded here. For those of you that may not know how to change an icon in the WordPress admin, here is a code snippet that will allow you to add a custom icon for your custom post type. Just add this code to your functions.php in your theme or somewhere in your plugin source.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | <?php add_action('admin_head', 'add_ctp_icons'); function add_ctp_icons() { $url = ''; //add image location $post_type = ''; //add custom post type echo '<style type="text/css" media="screen">' . "#icon-edit.icon32.icon32-posts-$post_type { background: url($url) no-repeat !important; }" . "#menu-posts-$post_type .wp-menu-image {" . "background: url($url) no-repeat 6px -17px !important; }" . "#menu-posts-$post_type:hover .wp-menu-image, #menu-posts-$post_type.wp-has-current-submenu .wp-menu-image {" . "background-position:6px 7px !important; } #menu-posts-$post_type .wp-menu-image img { display:none; }" . "</style>"; } ?> |