Hi guys,
i formerly added a costum font via google font manager without problems. I migrated my website and wanted to do the same, but the font manger won´t load any woff or woff2 files, only ttf who aren´t recommended as far as I know.
I added mime configuration to functions.php, which allows it, to upload those files into the library
function my_mime_types($mime_types){
$mime_types['zip'] = 'application/zip';
$mime_types['tiff'] = 'image/tiff';
$mime_types['bmp'] = 'image/bmp';
$mime_types['woff'] = 'application/x-font-woff';
$mime_types['woff2'] = 'application/x-font-woff2';
$mime_types['svg'] = 'image/svg+xml';
return $mime_types;
}
add_filter('upload_mimes', 'my_mime_types', 1, 1);
but still google font manager doesnt show or load those files. Then i tried changing my wp-config.php with
define('ALLOW_UNFILTERED_UPLOADS', true);
But still no effect. So I´m a bit stuck here and can´t understand, where the problem could be.
Thanks in advance!