• Resolved ElectricFeet

    (@electricfeet)


    Hi there,
    Like in this question, I’m looking to remove all Google fonts from the theme. I don’t want Google cookies messing up a cookie-free site (I will serve my own fonts).

    I note that the theme has the following in class-fire-resources_fonts.php:

    add_action( 'wp_enqueue_scripts' , array( $this , 'czr_fn_enqueue_gfonts' ), 0 );

    My php is a little rusty after a couple of years away from WordPress, and Customizr has become much more complex in the interim. Can I assume that removing that action will rid me of all google fonts? Or will it cause further problems down the line?

    Thanks for any light you can shed on this! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author presscustomizr

    (@nikeo)

    Hi @electricfeet, yes removing the action will prevent any Google Font to be loaded. Another way, would also be to use wp_dequeue_style( 'czr-gfonts' );

    Alternatively and without coding, you could prevent any Google font to be loaded by the theme by selecting a web safe font in the Customizer > Global Settings > Google Font.

    Thread Starter ElectricFeet

    (@electricfeet)

    Great! Thanks Nicolas!

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

The topic ‘Remove google fonts from theme’ is closed to new replies.