• Hi there,
    we use Customizr Theme for this site for several years.
    Selected font was “Open Sans” we use as self-hosted font.
    Because of GDPR we disabled Google Fonts by Autoptimize Plugin.
    That worked until last update to Customizr 4.3.0

    After the update a test via https://webbkoll.dataskydd.net/en/results?url=http%3A%2F%2Fmein-ei.nrw shows Third-Party-Request to
    //fonts.googleapis.com/css?family=Open+Sans&display=swap

    I tried to dequeue google fonts by adding

    //* Dequeue Styles - Remove Google Fonts from Customizr Theme
    add_action( 'wp_print_styles', 'czr_fn_maybe_enqueue_gfonts' );
    function czr_fn_maybe_enqueue_gfonts() {
          wp_dequeue_style( 'czr-gfonts' );
    }

    to functions.php in my childtheme.
    But this doesn’t work at all.

    Do you have a solution for this?

    Thanks in advance

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hello,

    I can only understand your concern about this especially from the optimization standpoint.

    I was happy when I discovered there are local fonts available in theme settings.
    Just go to: Global Settings / Font Picker
    -> Check for anything that isn’t from the “Google Font Pair” section, from the middle to the bottom of the list.

    Best regards

Viewing 1 replies (of 1 total)
  • The topic ‘remove google fonts to use self-hosted fonts’ is closed to new replies.