Site logo

Archived topic

Cannot update styles on Google Fonts added via plugin

3 replies · Started by Jake on July 30, 2021

Viewing posts 1–4 of 4

I have added the Inter Google font via the code snippets plugin but I cannot get the styles to update.

This is what I have in the code snippets plugin:

add_filter( 'generate_typography_customize_list', 'tu_add_google_fonts' );
function tu_add_google_fonts( $fonts ) {
	$fonts[ 'inter' ] = array( 
		'name' => 'Inter',
		'variants' => array( '100', '200', '300','400', '500', '600', '700', '800', 'Black 900' ),
		'category' => 'sans-serif'
	);
	
	return $fonts;
}

The font is updating and showing perfectly. But I cannot change the style. What have I done wrong? :)

Hey there,

That as worked! Thanks David/Leo :)

Glad to hear that!

This archived topic is closed to new replies.