Holt DevOps News

How to Fix “Sorry, This File Type Is Not Permitted for Security Reasons” – WordPress

News Categories: Wordpress

This article was published on: 08/17/20 6:30 PM

How to Fix “Sorry, This File Type Is Not Permitted for Security Reasons” – WordPress

Looking to use custom Web fonts on your WordPress Themes? Some hosting providers restrict the upload of WOFF files to enable custom fonts. Here is a quick break down of how to enable this feature.

WordPress includes an ALLOW_UNFILTERED_UPLOADS option that you can enable in your site’s wp-config.php file but its not set by default, we will show you how so once this is enabled, you’ll be able to upload any file type to your WordPress Media Library including custom font files.


Here’s how to set it up – but first, because you’ll be editing your wp-config.php file, we’d recommend backing up your site before proceeding.


Connect to your WordPress site via FTP/SFTP.

Locate your site’s wp-config.php ( file is located in the root folder, which is the same folder that has the wp-admin and wp-includes folders)

Open wp-config.php

Add the following line


Save and overwrite

Upload your custom WOFF, WOFF2 fonts, and enjoy.


Let's build a better web together

Get in touch with us for a quick quote

Web Development Agency, We Website Design

We’re eCommerce Experts in Cutting-edge Design & Development Technologies - Worldwide accreditation from leading digital platform providers including Shopify, WordPress & Magento.

Web Development Agency Manchester

Woolden Road
M44 5JX

Web Development Agency London

71-75 Shelton Street
Covent Garden

Let's hook up


0161 676 8989

Stalk Us On Social

What We Do

  • Shopify
  • WordPress
  • Magento
  • SEO
  • Aero Commerce
  • Shopify 2.0

Copyright 2022 We Agency - White Label Web Development Digital Agency.
Registered in England & Wales We Agency is a trading division of We Website Design Ltd. Company Registration Number 14175442 Privacy Policy

Ready to work with us?

Drop us your details and we will arrange a social distanced meet & greet or video chat so you can see our beautiful faces.