1// INSIDE YOUR THEME FUNCIONS.PHP FILE ->
2function wpdocs_dequeue_dashicon() {
3 wp_deregister_style('dashicons');
4}
5add_action( 'wp_enqueue_scripts', 'wpdocs_dequeue_dashicon' );
6
7// OR remove dashicons in frontend to non-admin
8function wpdocs_dequeue_dashicon() {
9 if (current_user_can( 'update_core' )) {
10 return;
11 }
12 wp_deregister_style('dashicons');
13}
14add_action( 'wp_enqueue_scripts', 'wpdocs_dequeue_dashicon' );
15