How to disable connection to Google Fonts servers
-
Hello,
Thanks first for your neat theme and giving a lean version for free.But unfortunately I have a problem:
Due to European Data protection rules I have to delete <link rel=’stylesheet’ id=’kale-fonts-css’ href=’https://fonts.googleapis.com/css?family=Montserrat%3A400%2C700%7CLato%3A400%2C700%2C300%2C300italic%2C400italic%2C700italic%7CRaleway%3A200%7CCaveat&subset=latin%2Clatin-ext’ type=’text/css’ media=’all’ /> from source code.Plugin Autoptimize does not work.
Child-theme function did not not work either.
add_action(‘wp_print_styles’, ‘kale_dequeue_styles’, 100);
function kale_dequeue_styles() {
wp_dequeue_style( ‘function kale_fonts_url’ );}add_action(‘wp_print_styles’, ‘kalehints_dequeue_styles’, 110);
function kalehints_dequeue_styles() {
wp_dequeue_style( ‘function kale_resource_hints’ );}Do you have a hint?
Thanks
Jutta
- The topic ‘How to disable connection to Google Fonts servers’ is closed to new replies.