Site logo

Archived topic

Remove Google Fonts from Customizer > Typography

5 replies · Started by Bettina on October 26, 2022

Viewing posts 1–6 of 6

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?

Hi there,

try adding this PHP Snippet:


add_filter( 'generate_font_manager_show_google_fonts', '__return_false' );

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;
} );

Simply type Roboto into that field. And thats it - You can now Add New Typograpgy and select Roboto :)

Thank you, David.
Best Support ever :-)

Glad to be of help

This archived topic is closed to new replies.