Some themes or plugins support uploading fonts such as google fonts. The safety regulations of WordPress however refuse to upload these two files .ttf and .otf .
« Unfortunately, this file type is not allowed for security reasons »
Our solution: Temporarily override the security mechanism!
The following line is added to the wp-config.php file:
define('ALLOW_UNFILTERED_UPLOADS', true);
Now you can upload the fonts.
It is strongly recommended to remove the line from the wp-config.php file again.
Dieser Beitrag ist auch verfügbar auf: Deutsch (German)