Hi Martin,
Since the documentation is pretty dated, I’ve actually tested this snippet included on the docs to check and make sure.
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'
);
return $fonts;
}
And it actually still works as shown here: https://share.getcloudapp.com/llun66Nj
Note: I’m using Code Snippets plugin but adding this to the Child Theme’s functions.php
should do the same thing.
Can you recheck the snippet if there’s no missing syntax? Let us know.
You can link us to the site you’re working on if you’d like. You can provide the site details on the private information text field.
A wise man once said:
"Have you cleared your cache?"