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

define('ALLOW_UNFILTERED_UPLOADS', true);

Save and overwrite

Upload your custom WOFF, WOFF2 fonts, and enjoy.

Simples.

This is an epic footer, don't you think?

We’re Hardcore Experts in Cutting-edge Design & Development Technologies - Worldwide accreditation from leading digital platform providers

Web Development Agency Manchester

The Barn
Woolden Road
Manchester
M44 5JX


Stalk Us On Social

Web Development Agency London

71-75 Shelton Street
Covent Garden
London
WC2H 9JQ


Let's hook up

hello@holtdevops.com

0161 676 8989

Copyright 2021 Holt DevOps Ltd - White Label Web Development Digital Agency | 13127888 Registered in England and Wales | 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.

    Name*

    Email*

    Telephone