Archived topic
Inter Font?
6 replies · Started by Eric on September 15, 2020
Hi GP Folks,
The Inter Font has been available in Google Fonts for a few months now.
When will it be available from GeneratePress?
It's an awesome, versatile font: https://rsms.me/inter/
Thanks,
Eric
Hi there,
You can add it in with this snippet:
add_filter( 'generate_typography_customize_list', function( $fonts ) {
$fonts[ 'inter' ] = array(
'name' => 'Inter',
'variants' => array( '100','200','300','400','500', '600', '700', '800', '900' ),
'category' => 'serif'
);
return $fonts;
} );
Adding PHP: https://docs.generatepress.com/article/adding-php/
Let me know if this helps :)
Perfect, thanks!
No problem :)
As there are already several posts regarding Inter, this question is a continuation. If the preference is to start a new conversation, feel free to shout.
Selecting the Inter font from Customizer for headings does not appear to take effect. For example, this is the current setting for h1 headings.
When a h1 heading is added to a page, the font does not render. It only applies font type, when explicitly selected. For instance, the details below have to be set.
This isn't expected behavior as the font has already been selected for all h1 elements.
Hi vast,
This topic is resolved for the topic starter.
Can you open up a new topic regarding this? Please add all the details there including the site you're currently working on so we could check.
Your particular issue maybe different from this one which may require us to ask for details that you may need use for a Private Information text area.
We'll make sure to address you on the topic you've started.
Thanks Elvin. A new post has been started - https://generatepress.com/forums/topic/customizer-inter-font-not-taking-effect