• woorooo

    (@woorooo)


    Hi, I’m not sure what this switch in typography settings does exactly “Load Google Font on Frontend”. Could not find it in documentation either.

    Do I need to turn it on for every block? Or do I need to turn it on only once for every font type, style and subset?

    What’s the best way to use it so in order to minimize requests to fonts.gstatic.com?

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Ben Ritner – Kadence WP

    (@britner)

    Hey,
    Thanks for posting!

    The setting allows you to turn off loading the font on the front end. So if you choose a google font but you don’t want Kadence Blocks to load that google font on the front end you can turn that off.

    An example use case is if your theme is loading a specific google font and you want to be able to create your content in the editor previewing with the font but you don’t want Kadence and your theme to load the same font.

    Kadence will never load the same font twice. And only loads the fonts when they are in use on that particular page. If you have selected the same google font in two different advanced header blocks Kadence will still only load the font once.

    In general, the setting is there if you need to prevent want would be natural for Kadence Blocks to do, but you don’t need to worry about configuring it unless you specifically need to prevent something because you are loading a font with another plugin or your theme.

    I hope that helps and clarifies.

    Ben

    Thread Starter woorooo

    (@woorooo)

    Thank you Ben, that helps a lot. Just one more question. Is there a way to make Kadence Blocks stop loading the font everywhere, like php snippet or some other way, without going into each block on every page separately? Because I already have quite a lot of those and it will take quite a lot of time to do it manually.

    Plugin Author Ben Ritner – Kadence WP

    (@britner)

    You bet,

    add_filter( 'kadence_blocks_print_google_fonts', '__return_false' );

    Ben

    Thread Starter woorooo

    (@woorooo)

    Worked great, thank you so much ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Load Google Font on Frontend’ is closed to new replies.