I seem to be unable to upload .ttf or .otf filetype fonts to the media library. Each time I try, I receive the following message:
.woff and .woff2 fonts upload fine, however converting each and every font file I have to these formats is beyond my time and the filesize limit of most conversion sites. please advise.
using Lay Theme on Firefox 82.0.3 (64-bit) on macOS Mojave 10.14.6
Hey @acsgaffney & @Richard-Keith
I had the same issue and found a solution somewhere on the internet. What helped at my page was:
open the wp-config.php
$table_prefix = 'xyz_'; /** * Für Entwickler: Der WordPress-Debug-Modus.
- add the following in between
- so it looks like this:
$table_prefix = 'xyz_'; define('ALLOW_UNFILTERED_UPLOADS', true); /** * Für Entwickler: Der WordPress-Debug-Modus.
- then, I could upload the .ttf file.
After uploading the .ttf, I deleted this line again from the config file, as I am not sure, if this will lead to any other security-related-issues on the Wordpress site...
Greetings from Cologne