Site logo

Archived topic

Brawler Google Font not in Generate Press?

7 replies · Started by William on December 21, 2020

Viewing posts 1–8 of 8

Hi there,

I see GeneratePress has Google fonts - but it does not have the 'Brawler' font.

What would be the best way to add the font? I tried this page but got stuck on permissions as seems quite a lot of work.

Kind regards,

Thanks for this, I added this code:

add_filter( 'generate_typography_customize_list', 'tu_add_google_fonts' );
function tu_add_google_fonts( $fonts ) {
	$fonts[ 'zilla_slab' ] = array( 
		'name' => 'Brawler',
		'variants' => array( '300', '300i', '400', '400i', '500', '500i', '600', '600i', '700', '700i' ),
		'category' => 'serif'
	);
	
	return $fonts;
}

And although it says the headings are Brawler here, it does not seem to have updated the fonts of headings?

Hi,

Have you fixed this for the "Site I want to have Brawler headings" link?

It is actually rendering Brawler as shown here:
https://share.getcloudapp.com/xQuYOvYb

The "Site that has the Brawler headings I want" link you provided doesn't actually have Brawler. It's using the fallback "Times New Roman".

Perhaps you've labeled the links the other way around? Let us know.

Note: Sites use fallbacks when the font is not properly added to the site.

Ah yes I did not change the 'zilla_slab' to 'Brawler' - my apologies - thank you for the help!

Nice catch. No problem. :)

This archived topic is closed to new replies.