Hello my dear DiviManiacs, here I am for a new little thing I have discovered today working on a new website.
I needed to use in my new project a font downloaded from www.dafont.com, but unfortunately, this font was not included in the Divi library.
No problem, uploading a new font in Divi is very easy.
You can upload your font file in the design settings of a Divi text module, clicking on the “Upload” button in the “Text Font:” option.
Then you have simply to write the name of your font and upload the file. The file formats supported are: .OTF, .TTF, .EOT, .WOFF, WOFF2.
Very easy… BUT…
Today, when I tried to enter my file appeared to me this text:
I thought: “Holy shit, what can I do now?”.
So I start looking on Google for a solution and I found one very easy and very powerful.
The upload is not allowed for security reasons but you have just to add the following line of code at the end of the wp-config.php file on your WordPress installation and try again:
define('ALLOW_UNFILTERED_UPLOADS', true);
And that’s all folks!
I hope you will find this small tip useful.
See you soon.