Site logo

Archived topic

Adding Google Font Limelight, not working

3 replies · Started by Kimberly on May 8, 2019

Viewing posts 1–4 of 4

I have tried the directions here to add the font Limelight: https://docs.generatepress.com/article/adding-local-fonts/

I do have it showing up at the bottom of the list, but when I select it for headings, it does not show up. What am I missing?

This is a fresh install with no content yet.

Okay, I removed the code that I followed from adding local fonts.

I have added the below code to my functions.php, which is what I had tried initially without success. I went back to that, and retested and found that it DID change the font to Limelight for the page title and the menu, but not for the headings. The headings were what I was trying to change in the first place.

Limelight doesn't have many variants as far as I can tell, so don't know if I have the right thing there.

:

add_filter( 'generate_typography_customize_list', 'tu_add_google_fonts' );
function tu_add_google_fonts( $fonts ) {
$fonts[ 'limelight' ] = array(
'name' => 'Limelight',
'variants' => array( '400', '500', '700' ),
'category' => 'serif'
);

return $fonts;
}

Do your headings have a different font set in their Customizer options? Which options are you changing to the "Limelight" font?

This archived topic is closed to new replies.