But when I try to upload the fonts y get this problem: “lato-v17-latin-italic.ttf” has failed to upload.
Sorry, this file type is not permitted for security reasons”
It only happens with the .ttf extension.
By default, WordPress doesn’t allow all types of files to be uploaded. (.svg, .ttf, etc)
You’ll have to set your site to allow upload for these files.
You can do that by either installing a plugin, setting ALLOW_UNFILTERED_UPLOADS
to true
on wp-config.php
or adding a PHP snippet like this one:
https://gist.github.com/jamesdixon/8ee2f09557d4e2bd7c09