[Support request] Adding Caveat Brush to GP theme

Home Forums Support Adding Caveat Brush to GP theme

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1035877
    Jason

    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;
    }

    #1036361
    David
    Staff
    Customer Support

    Hi there,

    that code is PHP – this article explains how to add:

    https://docs.generatepress.com/article/adding-php/

    #1036914
    Jason

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

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