How to Fix the “Sorry, you are not allowed to upload this file type” Error in WordPress and Upload Custom Fonts in Divi

Your website deserves that perfect touch—a custom font that matches your brand vibes exactly. You’ve found the one, you’re ready to upload custom fonts in Divi Theme on your WordPress site, and then BAM! You hit the dreaded “Sorry, you are not allowed to upload this file type” error.

Frustrating, right? Don’t worry—this blog will walk you through fixing the issue and seamlessly uploading fonts for your Divi Theme site.

By the end of this guide, you’ll know how to:

  • Select and download free custom fonts
  • Resolve the WordPress upload restriction error
  • Set your custom font as the default in Divi

Let’s get into it!

What does it mean when it says file type is not allowed?

When you attempt to upload a custom font in Divi, you may be met with an error message stating “Sorry, you are not allowed to upload this file type.” This occurs because WordPress restricts certain file types from being uploaded for security reasons. However, there are ways to bypass this restriction and successfully upload custom fonts in Divi.

sorry you are not allowed to upload this file type

Why Use Custom Fonts?

While WordPress and Divi come loaded with Google and Adobe fonts, custom fonts offer that extra edge by allowing you to:

  • Stand out from competitors
  • Better reflect your brand’s personality
  • Create a consistent visual style across your website

Now that you know the importance of custom fonts, it’s time to select one and get started.

How to Fix the “Sorry, This File Type Is Not Permitted” Error in WordPress and Upload Custom Fonts in Divi

▶️ Please watch the video below to get all the exciting details! 👇🏻

Step 1: Find a Free Custom Font

There are plenty of resources online where you can find high-quality custom fonts, but one of my favourites is 1001Fonts.com for its commercial fonts. It’s user-friendly and allows you to filter fonts by style, theme, and licensing.

To find a font:

  1. Visit 1001fonts.com.
  2. Click Free Fonts for Commercial Use to ensure you can use the font safely on your website.
  3. Pick a font that suits your website. For this tutorial, we’ll go with Young Serif Regular.

Download the font—you’ll receive a ZIP file containing the font’s formats (like OTF or TTF).

Step 2: Attempt and Fail to Upload the Font

Once you’ve downloaded your font, the next step is to upload it to your site. Here’s how you’d typically do this in Divi:

  1. Open any page in the Divi Builder.
  2. Add a Text Module and go to Design > Heading Text.
  3. Under the Font dropdown, click Upload to upload your downloaded font.

Unfortunately, this is where you’ll hit the issue. WordPress may reject your upload with the message: “Sorry, you are not allowed to upload this file type.”

sorry you are not allowed to upload this file type

Don’t sweat it—this error occurs because WordPress blocks certain file types for security reasons. Next, we’ll show you how to fix this.

Step 3: Fix the Upload Error Using a Plugin

To bypass the restriction and upload custom font files, you’ll need to edit your site’s configuration. Instead of accessing your website’s hosting platform manually, we can do this more easily using a plugin.

Here’s how it’s done:

  1. Go to Plugins > Add New in your WordPress dashboard.
  2. Search for Bit File Manager and install/activate it.
Bit File Manager, uploading custom fonts to Divi theme

Once installed, click on Bit File Manager in the sidebar, then select Home to view your site’s files.

Locate the WordPress wp-config.php file:

wp-config.php bit file manager
  1. Hover over the wp-config.php file and click the pencil icon to edit it.
  2. Scroll to line 72 and paste this code:
uploading php

define(‘ALLOW_UNFILTERED_UPLOADS’, true);

Save and close the editor.

This small piece of code overrides WordPress’ restrictions, allowing you to upload previously blocked file formats.

Not sure how to do this then watch the full tutorial below ⬇️

Step 4: Upload the Font Again

With the upload block fixed, return to the Divi Builder:

  1. Open any page and add a Text Module.
  2. Go to Design > Heading Text and click Upload Fonts again.
  3. Drag and drop your font files (such as .otf or .ttf) into the uploader and click Upload.
a screenshot of a computer, Uploading custom fonts to Divi Theme

Congratulations! Your custom font has now been uploaded successfully.

Step 5: Set the Custom Font as Default in Divi

Manually setting a custom font for each paragraph or heading can be tedious. Instead, you can define your new font as a default across your Divi site.

  1. Go to Appearance > Customize in your WordPress dashboard.
  2. Navigate to Typography or the section for Header Text.
  3. Select your uploaded font as the default for headings, body text, or even elements like buttons.
Setting up custom default fonts in Theme Customizer

Once saved, all new content will use your custom fonts automatically, streamlining your design process.

Additional Tips

  • Mobile Optimisation: While setting your fonts, remember to adjust their sizes for desktop, tablet, and mobile devices for a responsive design.
  • Global Header/Body Fonts: You can set your custom fonts globally within Divi’s Theme Customizer to save even more time.

Create a Website that Stands Out

And there you have it! You’ve successfully uploaded and set custom fonts on your Divi website. Small customisations like fonts can dramatically elevate your site’s design and make it more aligned with your brand identity.

If this guide was helpful, share your completed site, or drop a comment below about the font you’re most excited to use! For more tips and advanced tutorials, don’t forget to subscribe to our YouTube channel.

Your next beautifully customised website is just a few clicks away!

If you found this post helpful, please share

Sarah Worboyes, Website Designer and Dubsado Strategist

Hi, I’m Sarah your WordPress Website Designer & Dubsado Specialist based in Ealing, London. I write about all things WordPress, Divi, SEO & Dubsado.

Divi Website Templates

Categories

Related Posts

Free Divi Links Page for Instagram, Link In Bio, LinkTree Page Free with Divi

Download Your Free Divi Links Page For Instagram; Ditch LinkTree & Improve Your SEO

About The Author

Meet Sarah Worboyes, a freelance Website Designer and Dubsado Strategy. Born and raised in London, Sarah is a blend of creativity and strategy, combining both aspects beautifully in her work. Her passion for design, coupled with her expertise in strategic client experience via Dubsado, results in high-quality and even higher conversions.

To keep up with her latest professional insights and quirky takes, follow Sarah on her social media @sarah_worboyes.

IF YOU LOVED this POST THEN CHECK out THESE…

All
Divi Tips
Website Tips

Download my high-converting canned email templates

Enter your details below get your free emails whizzing into your inbox

Download now

Enter your details below to get your free Dubsado Client Portal Banners

Download now

Enter your details below get your free SEO checklist

Download now

Enter your details below to receive your link in bio template

Coming Soon

By joining the waitlist you'll be notified when this template is live!