Site logo

Archived topic

Adding Caveat Brush to GP theme

3 replies · Started by Jason on October 15, 2019

Viewing posts 1–4 of 4

Hi I've followed the support articles trying to add Caveat Brush Google Font to Generate Press theme but it's not showing up in list.
I'm using Simple CSS to add the code snippet
Have I got something wrong? Caveat only has one style being 400.
Below is the code I have entered

add_filter( 'generate_typography_customize_list', 'tu_add_google_fonts' );
function tu_add_google_fonts( $fonts ) {
$fonts['caveat_brush'] = array(
'name' => 'Caveat Brush',
'variants' => array('400'),
'category' => 'cursive'
);

return $fonts;
}

Thank you so much worked perfectly. Clearly I'm a beginner at this LOL

You're welcome :)

This archived topic is closed to new replies.