inability to upload .ttf fonts to media library
-
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
website: http://www.angusgaffney.com/about
-
Dear @acsgaffney
What happens when you upload it as a .zip file? do you have the same issue? :)
Best
Richard -
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
-
navigate to
$table_prefix = 'xyz_'; /** * Für Entwickler: Der WordPress-Debug-Modus.
- add the following in between
define('ALLOW_UNFILTERED_UPLOADS', true);
- 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
Alex -
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it