dequeue dashicons

Solutions on MaxInterview for dequeue dashicons by the best coders in the world

showing results for - "dequeue dashicons"
Ilana
25 Jan 2020
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
similar questions
wp cpt dashicon