Elementor禁用谷歌字体 Font Awesome和Eicons

Elementor禁用谷歌字体 Font Awesome和Eicons

禁用Google Fonts

add_filter( 'elementor/frontend/print_google_fonts', '__return_false' );

禁用Font Awesome

add_action( 'elementor/frontend/after_register_styles',function() {
	foreach( [ 'solid', 'regular', 'brands' ] as $style ) {
		wp_deregister_style( 'elementor-icons-fa-' . $style );
	}
}, 20 );

禁用Eicons

add_action( 'wp_enqueue_scripts', 'remove_default_stylesheet', 20 ); 
function remove_default_stylesheet() { 
	wp_deregister_style( 'elementor-icons' ); 
}

分享这篇文章