[Resolved] Cannot Call Grandstander Google Font

Home Forums Support Cannot Call Grandstander Google Font

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1444501
    Ian

    I have used this:

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

    But still cannot call the font Grandstander in Customizer. Any ideas?

    #1444525
    Leo
    Staff
    Customer Support

    Hi there,

    Let’s try this snippet instead:

    add_filter( 'generate_typography_customize_list', function( $fonts ) {
    	$fonts[ 'grandstander' ] = array( 
    		'name' => 'Grandstander',
    		'variants' => array( '100','100i','200','200i','300', '300i', '400', '400i', '500', '500i', '600', '600i', '700', '700i','800','800i','900','900i', ),
    		'category' => 'serif'
    	);
    	
    	return $fonts;
    } );
    #1444563
    Ian

    Hey Leo, that worked perfectly! Is this because Grandstander is not a very popular font and that’s why it does not show up inside the GP Customizer?

    #1444635
    Leo
    Staff
    Customer Support

    Your snippet should work as well – I believe it’s something we need to update on our end 🙂

    It’s better to use my snippet anyway so you are not loading all the unused font in the customizer.

    #1444640
    Ian

    Perfect, thank you!

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