Last active
April 14, 2023 09:05
-
-
Save julian-stark/e4d6bfc7a7b5d804255607da77e52553 to your computer and use it in GitHub Desktop.
This is a nicer method to replace Eicons from Elementor. Don't remove it in the backend - Elementor is based on it ;)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Deactivate Eicons in Elementor | |
add_action( 'wp_enqueue_scripts', 'js_remove_default_stylesheet', 20 ); | |
function js_remove_default_stylesheet() { | |
// Don't remove it in the backend | |
if ( is_admin() || current_user_can( 'manage_options' ) ) { | |
return; | |
} | |
wp_deregister_style( 'elementor-icons' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Still eicons.woff?5.10.0 (FCP/LCP) in Google Lighthouse test... (E 3.4.7 EP 3.5.1)