Hi, I’m attempting to add custom fonts to the Customizer, so I can select the font among my other Google fonts. So far I’ve been able to add one with the code below in my functions.php
// Add custom font name in the Theme Option's typography section
// =============================================================================
function my_custom_font($data){
$data['mywebfont'] = array(
'source' => 'Custom',
'family' => 'Fontania',
'stack' => '"Fontania", cursive',
'weights' => array( '400' )
);
array_push($data, $data['mywebfont']);
return $data;
}
add_filter('x_fonts_data', 'my_custom_font');
// =============================================================================
I would like to add another font, but have not had luck adding a secondary one. Here is the info for the second one
'source' => 'Custom',
'family' => 'Acumin Pro Condensed Light',
'stack' => '"Acumin Pro Condensed Light", sans-serif',
'weights' => array( '300' )
How would I be able to add both into the Customizer font selection?