I have the same exact problem 🙁
Can you please check the file permissions on the server? Open wp-content/uploads/fonts in an FTP program and tell me what the permissions are set to.
Can you try changing it to 777? 755 is normally what you want, but sometimes it needs less restrictive permissions.
I’ve changed the permissions on the file and set it to 77 but I still can choose the font but the font is in the uploads folder.
Thanks.
If you look in FTP, do the files show up in wp-content/uploads/fonts/?
sorry about the typo in the last post above I just realized it wasn’t clear, yes the files show up on wp-content/uploads/fonts/ also, I have changed the permissions to 777. Still, it wouldn’t let me choose the font even when it says that the font has been successfully uploaded.
I know what causes this.
Are you able to make a tweak to one of the plugin files if I show you how?
Yes, I think I can, any help will do, thank you!
Open includes/functions.php and change this
function fu_is_font( $file, $path ) {
if ( !in_array( fu_get_file_extension( $file, $path ), fu_get_allowed_font_types() ) )
return false;
$mime = fu_get_file_mime( $file, $path );
$extension = fu_get_file_extension( $file, $path );
$allowed_mimes = fu_allowed_mime_types();
if( $allowed_mimes[$extension] != $mime )
return false;
return true;
}
to this
function fu_is_font( $file, $path ) {
return true;
if ( !in_array( fu_get_file_extension( $file, $path ), fu_get_allowed_font_types() ) )
return false;
$mime = fu_get_file_mime( $file, $path );
$extension = fu_get_file_extension( $file, $path );
$allowed_mimes = fu_allowed_mime_types();
if( $allowed_mimes[$extension] != $mime )
return false;
return true;
}
Thanks mate! it finally worked! 🙂