Archived topic
Adding Google Font Limelight, not working
3 replies · Started by Kimberly on May 8, 2019
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.
Hi there,
You can actually use the steps here if it's a Google fonts:
https://docs.generatepress.com/article/customizing-the-google-font-list/#adding-your-google-font-to-the-list
If you still want to upload it as a local font, make sure this isn't the error:
https://generatepress.com/forums/topic/adding-local-font/#post-893489
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?