Hi,
As you can see on my site https://stefanguy.com I’ve successfully added custom fonts. I achieved this a few months ago with WOFF files with no problem; they work perfectly.
However. I’m trying to add one more font, again a WOFF file but no matter what I do I cannot upload it. I keep receiving this error message “Sorry, this file type is not permitted for security reasons.”
I’ve tested a multitude of font files (woff and woff2) including the ones that I successfully uploaded a few months ago and none upload. All receive this same message.
So it worked a few months ago and now it doesn’t.
I’ve tried this:
function my_mime_types($mime_types){
$mime_types[‘woff’] = ‘application/x-font-woff’;
return $mime_types;
}
add_filter(‘upload_mimes’, ‘my_mime_types’, 1, 1);
And this allows me to upload the file however the file type is listed as “application/x-font-woff” and not “font/woff” like the fonts I was able to successfully upload.
“application/x-font-woff” doesn’t seem to be recognised by the Font Manager only “font/woff”.
Any help would be much appreciated. I’m missing the Bold Font for my Body text and I desperately want to add it.
Thanks