Hello,
I would like to disable the google fonts Open Sans and Roboto because I dont need them and their loading is slowing down my site. I found the following code in theme.php, line 16:
if(!function_exists('et_enqueue_gfonts')) {
function et_enqueue_gfonts() {
wp_enqueue_style("font-open-sans",et_http()."fonts.googleapis.com/css?family=Open+Sans:300,400,700,300italic");
wp_enqueue_style("font-roboto",et_http()."fonts.googleapis.com/css?family=Roboto:100,400,500,700,300&subset=latin,cyrillic-ext");
}
}
add_action( 'wp_enqueue_scripts', 'et_enqueue_gfonts', 40);
I tried to put
remove_action( 'wp_enqueue_scripts', 'et_enqueue_gfonts', 40);
and this had no effect. It worked by deleting the mentioned code in theme.php but I would prefer a method via functions.php.
Any suggestions?
Many thanks in advance!