Last active
April 15, 2021 07:58
-
-
Save LeMiira/50c98428168b4308649692ea90727e2d to your computer and use it in GitHub Desktop.
How dequeue fontawesome elementor
This file contains hidden or 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 | |
add_action( 'wp_print_styles', 'dequeue_font_awesome_style' ); | |
function dequeue_font_awesome_style() { | |
wp_dequeue_style( 'font-awesome' ); | |
wp_deregister_style( 'font-awesome' ); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In case this helps anyone further, I have just received this from Elementor Support today (14/04/21)
You may dequeue Font Awesome by adding the code below into your theme's functions.php file:
add_action( 'elementor/frontend/after_register_styles',function() { foreach( [ 'solid', 'regular', 'brands' ] as $style ) { wp_deregister_style( 'elementor-icons-fa-' . $style ); } }, 20 );
For other resources, you may see the respective codes in the doc below:
https://docs.elementor.com/article/286-speed-up-a-slow-site