Skip to content

Snippet: Remove all Google Fonts from the typography settings panel

// Remove all Google font options from the Customizer
// Typography settings but keep them for Total VC modules
function remove_customizer_google_fonts( $fonts ) {
	if ( is_customize_preview() ) {
		$fonts = array();
	return $fonts;
add_filter( 'wpex_google_fonts_array', 'remove_customizer_google_fonts' );
All PHP snippets should be added via child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top