[Resolved] Remove Google Fonts from Customizer > Typography

Home Forums Support [Resolved] Remove Google Fonts from Customizer > Typography

Home Forums Support Remove Google Fonts from Customizer > Typography

  • This topic has 5 replies, 2 voices, and was last updated 5 months ago by David.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2387632
    Bettina

    I would like to erase the Google fonts from Font Manager in Customizer > Typography so that I can’t select any Google Font which isn’t local installed.

    Is there any way to do this?

    #2387711
    David
    Staff
    Customer Support

    Hi there,

    try adding this PHP Snippet:

    
    add_filter( 'generate_font_manager_show_google_fonts', '__return_false' );
    
    #2388285
    Bettina

    Perfect – Thank you David!

    But now I have a new Problem:
    In the DropDown Menu my local Font Roboto is missing.

    Do I have to change the following PHP-Snippet?

    add_filter( ‘generate_typography_default_fonts’, function( $fonts ) {
    $fonts[] = ‘Roboto’;

    return $fonts;
    } );

    #2388289
    David
    Staff
    Customer Support

    Simply type Roboto into that field. And thats it – You can now Add New Typograpgy and select Roboto 🙂

    #2388303
    Bettina

    Thank you, David.
    Best Support ever 🙂

    #2388309
    David
    Staff
    Customer Support
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.