Tom

Forum Replies Created

list of topics you have created till now.

  • Tom
    Participant

    I found someone to help me with this. It’s solved.

    Tom
    Participant

    I think what I basically need is sample code to

    A) prevent the theme to request call to Google (I want to do that due to GDPR). I found this code in the functions.php that might be relevant:

    // Enqueue style
    wp_enqueue_style( ‘unifrakturmaguntia’, ‘//fonts.googleapis.com/css?family=UnifrakturMaguntia’ . $subset, null, null );
    wp_enqueue_style( ‘coustard’, ‘//fonts.googleapis.com/css?family=Coustard’ . $subset, null, null );
    wp_enqueue_style( ‘lora’, ‘//fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic’ . $subset, null, null );

    So I’d need to disable this somehow, but don’t know how.

    B) to redirect the calls to the fonts on my own server (I created that folder and copied the necessary fonts into it). The URL would be:

    https://mywebsite.com/wp-content/uploads/fonts/fontxyz.woff and
    https://mywebsite.com/wp-content/uploads/fonts/fontxyz.woff2

    Again, I don’t know where to add which code to make that work. Maybe you can help?

Viewing 2 posts - 1 through 2 (of 2 total)