Home › Forums › Support › Adding additional google fonts to the customizer This topic has 7 replies, 3 voices, and was last updated 4 years, 11 months ago by Leo. Viewing 8 posts - 1 through 8 (of 8 total) Author Posts May 28, 2019 at 4:40 am #913089 Donna Hi there! What’s the easiest/best way to add a google font to the customizer if it’s not already listed? Thanks! Donna May 28, 2019 at 6:01 am #913143 DavidStaff Customer Support Hi there, You would need to add one of the PHP function filters listed here: https://docs.generatepress.com/article/customizing-the-google-font-list/ May 28, 2019 at 9:54 am #913534 Donna Thank you so much! Where do I find the information to include such as the variants and array? Donna May 28, 2019 at 9:56 am #913535 LeoStaff Customer Support Adding PHP: https://docs.generatepress.com/article/adding-php/ May 28, 2019 at 10:02 am #913544 Donna HI Leo, thank you! Sorry for the confusion! I know how to add PHP; I wanted to know where do I find the Google Font values for variants, etc. as seen in this example: add_filter( ‘generate_typography_customize_list’, ‘tu_add_google_fonts’ ); function tu_add_google_fonts( $fonts ) { $fonts[ ‘david_libre’ ] = array( ‘name’ => ‘David Libre’, ‘variants’ => array( ‘400’, ‘500’, ‘700’ ), ‘category’ => ‘serif’ ); Donna return $fonts; } May 28, 2019 at 10:30 am #913575 LeoStaff Customer Support Ahh sorry for the misunderstanding. You can find what’s available through Google. For example: https://fonts.google.com/specimen/David+Libre Then I believe 400 is regular, 500 is medium and 700 is bold: https://docs.generatepress.com/article/google-font-variants/ Let me know if this helps ๐ May 28, 2019 at 1:32 pm #913707 Donna Thank you so much! May 28, 2019 at 2:14 pm #913728 LeoStaff Customer Support No problem ๐ Author Posts Viewing 8 posts - 1 through 8 (of 8 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In