Site logo

Archived topic

Google fonts didn't load

1 reply · Started by Kharisma on March 14, 2017

Viewing posts 1–2 of 2

I added this code in Additional CSS like suggested in GP because my chosen font was not on the list. But the font list never changed/updated. It stayed at 200 most popular list. What did I do wrong?

add_filter( 'generate_number_of_fonts','tu_show_all_available_google_fonts' );
function tu_show_all_available_google_fonts()
{
	return 'all';
}

I also tried this code below. same thing. my chosen font was never added on the list.

add_filter( 'generate_typography_customize_list','tu_add_google_fonts' );
function tu_add_google_fonts( $fonts )
{
	$fonts[ 'milonga' ] = array( 'name' => 'Milonga' );
	
	return $fonts;
}
This archived topic is closed to new replies.