Hi,
You can deactivate Google Fonts, Font Awesome, and Eicons for example, by adding the following lines of code to your functions.php file in your child theme.
For Google Fonts:
add_filter( ‘elementor/frontend/print_google_fonts’, ‘__return_false’ );
For Font Awesome:
add_action(‘elementor/frontend/after_register_styles’,function() {
foreach( [ ‘solid’, ‘regular’, ‘brands’ ] as $style ) {
wp_deregister_style( ‘elementor-icons-fa-‘ . $style );
}
}, 20 );
For Eicons:
add_action( ‘wp_enqueue_scripts’, ‘remove_default_stylesheet’, 20 );
function remove_default_stylesheet() {
wp_deregister_style( ‘elementor-icons’ );
}
I added this code in functions.php, and clear the cache, but fa-solid-900.woff2 still exists
add_action(‘elementor/frontend/after_register_styles’,function() {
foreach( [ ‘solid’, ‘regular’, ‘brands’ ] as $style ) {
wp_deregister_style( ‘elementor-icons-fa-‘ . $style );
}
}, 20 );
-
This reply was modified 4 years, 2 months ago by
tonyzyc.
How did you fix it @tonyzyc ? thx
@talmo your provided code doesn’t not helped. Could you recheck please.