
How to Change Default Icon for Custom Post Type In WordPress
Custom post type name always display with a pin icon in the back end and it’s a default. For changing this icon we need to just paste this below code in the function.php
file. We can also change it to image instead of this icon.
function replace_admin_menu_icons_css() { ?> <style> .dashicons-admin-post:before { content: "\f118"; } </style> <?php } add_action( 'admin_head', 'replace_admin_menu_icons_css' ); ?>