• So, I’m trying to upload some custom fonts through the media uploader as elementor wants, but when I upload woff, woff2, ttf, svg, etc… for the fonts, WordPress is denying me due to security.

    What is the best way to get these uploaded through the backend UI?

    Thanks
    Kevin

    • This topic was modified 5 years, 9 months ago by blur702.
Viewing 5 replies - 1 through 5 (of 5 total)
  • You can use the Lord of the Files plugin: https://wordpress.org/plugins/blob-mimes/

    Thread Starter blur702

    (@blur702)

    I’m intrigued by the ‘Lord of Files’ plugin.

    Thread Starter blur702

    (@blur702)

    Nope – thanks though. It didn’t do the trick.

    That plugin usually does the trick, but the plugin author @blobfolio is good at determining if the file is the problem.

    Hi @blur702,

    WordPress sites have an explicit whitelist of allowed file types which can be uploaded through the Media Library. Lord of the Files helps WordPress figure out what type of file a file actually is (so it can be checked against the whitelist correctly), but does not actually alter the whitelist itself.

    Font files are not part of the default whitelist, so as a first step, you need to add entries for TTF, WOFF, WOFF2, etc.

    Allowed file types/extensions can be added or removed by using the upload_mimes filter hook. (That’s just part of vanilla WordPress; no plugins required.)

    If you yourself are not a programmer or able to add custom code to your site, you could try a plugin like https://wordpress.org/plugins/wp-add-mime-types/ to help get them added for you.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Adding Acceptable file types’ is closed to new replies.