Every Las Vegas spider web designer understands the need for selecting the perfect fonts for your web design.  Choosing the right font for your design tin brand or pause your site concept and flow. Fonts are the guide for all the content on your web site, so choosing the right 1 is critical.  Most WordPress themes provide access to many standard Microsoft fonts and an array of Google fonts to brand your spider web site look awesome.  Sometimes those fonts are enough, but if you really need a font that matches the look your site is going for, you will need a custom font.  Adding custom fonts to a WordPress site can be catchy, but nosotros have the solutions for you.

For our examples in this manufactures, I am using the WordPress theme Avada, one of the nigh normally used themes. I will as well be using the GoDaddy Cpanel, but the Mime Types options should be bachelor in all standard Cpanels. Information technology is important that if you are a Las Vegas Web Development company that yous understand which theme and Cpanel you lot are using.  If you are non certain, contact your hosting company for assistance.

The biggest hurdle to calculation custom fonts to a WordPress web pattern is the dreaded WordPress Mistake when uploading a font:

"Sad, This File Blazon Is Not Permitted For Security Reasons"

Have a deep breath, we can solve this one. I will show you iii ways to solve this issue, starting with the easiest to the hardest.  Implement the fixes below in the order I suggest and test your site afterward trying each fix.  If you can't upload custom fonts and become the error again, endeavour the side by side set.

To first, why are you getting this mistake not allowing the upload of certain file types?  By default WordPress is set to recognize several different files types, simply to avoid viruses and other random abuse, block others.

Default WordPress and Web Hosting Cpanel (Almost) Immune Files Types.  The more than common ones.

Paradigm File Type
.jpg, .png , .gif

Certificate File Blazon
.pdf (Portable Certificate Format; Adobe Acrobat)
.csv/.xls/.xlsx (Microsoft Excel Document)
.doc/.docx (Microsoft Word Document)
.ppt/.pptx/.pps/.ppsx (Microsoft PowerPoint Presentation)
.xls/.xlsx (Microsoft Excel Document)

Audio
.mp3, .m4a,.mp4, .flv,.wav, .midi..wma

Video
.mov, .mp4, .m4v, webm, .avi, .mpg, wmv, ogv

Of course you volition have .nada file athenaeum as well.  A few file types yous don't see as well .exe are .ttf, woff, woff2, .svg, and .eot. Those are the fonts files you will need to be able to upload to your spider web site in order to use them within your design.

Let'southward get this figured out and practice it with the least possible chance of doing any permanent damage to your site.  In fact, none of our fixes we recommend tin can harm your site or information technology'south function if properly applied.

FIX 1 – Edit Your wp_config.php file

This is an like shooting fish in a barrel to find WordPress file located in your root WordPress directory.

Edit the file and add the following line of code directly above line /* That's all, stop editing! Happy blogging. */

define('ALLOW_UNFILTERED_UPLOADS', true);

Save the file.

If your hosting provider has not setup blocks and the blocks are within your WordPress configuration, this fix should exist the fix you lot demand.  It will allow WordPress users to upload any file type they choose.


FIX 2 – WordPress Plugins

This option CAN work and Tin'T work since plugins don't always work with sure themes.  It will highly depend on your theme and which version of WordPress you are using.  I recommend ever using the most upwards-to-date version of WordPress.  Some plugins work corking, while other don't , especially if they disharmonize with the theme or other plugins yous may take installed.  It's why this is the ane FIX I wouldn't recommend using.  As a Las Vegas web design company, we alive by the credo, the least amount of plugins the meliorate.  The more plugins used during a pattern, the more conflicts you can create and the more than updates you have to stay on top of.

And so this route is an easy route at first, but may be painful later.  Here are some recommend WordPress Plugins to permit custom fonts Mime Types.

WP Add Mime Types
Mime Types Plus

There are a few others, just the two plugins above are the most downloaded and overall best performing plugins.


Set up 3 – Edit Mime File Types In Cpanel (Spider web Hosting)

If all else fails, lets fix the problem at the source, your spider web hosting Cpanel.  Hosting accounts are very protective of their customers information and will likely not let certain files to be uploaded, unless the customer needs it.  This avoids possible corruption or getting viruses.

Do the following;

  1. Log into your Spider web Hosting Cpanel.
  2. Gyre down the choices until you see the "ADVANCED" options.  If your cpanel is different, Mime Types may be underneath a different section title, but look for "MIME Types" as seen below.
  3. Click on MIME Types.
  4. Add in a MIME Type.  For True Type fonts, utilise font/ttf.
  5. Add an extension .ttf for True Type Font.
  6. Click Add.

Later on you add the .TTF extension, your Cpanel should look like this:

You tin can repeat the above process if you wish to employ other font extensions.  Hopefully by Set 3 your upload issues have been solved and you can now freely upload custom fonts to your WordPress spider web site.  Over at Send It Rising, we face many challenges in designing the best web sites we can for our customers.  We exercise non let bug like uploading files stop our web design process.  If you lot find yourself dealing with a challenge similar this one, please reach out to us at www.senditrising.com/contact and we will be happy to help you.

This piece was written by Send it Ascension'due south Website Designer, Todd Farino.