Tagged: custom font, font upload
HI
I bought the font “Coco-Sharp” and have created a zip file with the fonts I want to include, see here:
When I upload them in Enfold, the “heavy” version is not included under the Coco-sharp font, but is called Font: MACOSX ( font-family: macosx )
normal: 400. I tried zipping just the ttf for the Heavy font and uploading that, and it did the same thing. Can you see what the issue is? Is there a better way to do this? I am using a child theme and a staging site.
thanks
Nancy
Hey Munford,
Thank you for the inquiry.
Adding this filter in the functions.php file should help.
if ( ! function_exists( 'avf_add_missing_google_font_filenames') ) {
function avf_add_missing_google_font_filenames($enfold_font_manager_types) {
return array_merge($enfold_font_manager_types, array('heavy' => array( 900, 'normal' )));
}
add_filter( 'avf_google_fonts_style_definitions', 'avf_add_missing_google_font_filenames', 10, 1 );
}
You have to remove the current font set and upload it again. And please note that the custom font manager was intentionally created for Google fonts, so adding a custom font from somewhere else might not work as intended.
Best regards,
Ismael
thanks that worked!
Hi,
Did you need additional help with this topic or shall we close?
Best regards,
Jordan Shannon