upload a custom font files is not allowed in stylesheet themes

Farah El Agha asked on November 15, 2017 13:58

Hi everyone, I am trying to upload a new font files (with .ttf .woff and .eot extensions) to kentico stylesheet and the server is returning this response: "You cannot upload files with the 'ttf' extension. Only following extensions are allowed: gif, png, bmp, jpg, jpeg, css, skin, svg.", I tried following your instructions by navigating to Settings-->System-->Files-->upload extensions and add the extensions woff;ttf;eot, but the same problem persists. I am using kentico 10, does the procedure differ from one version to another? and what should I do to use the custom font in my project?

Correct Answer

Rui Wang answered on November 15, 2017 20:59

According to this: https://docs.kentico.com/k10/developing-websites/designing-websites-using-css/creating-skins-using-asp-net-themes#CreatingskinsusingASP.NETthemes-Websitedesignfiles those are the only file types allows and you can't change them. You can store other files like font type directly on file system, or media library which you can add the extension to Settings > Content > Media > extensions.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Brenden Kehren answered on November 15, 2017 20:55

For those files you'll need to copy them to the directory you wish to use them in. I'm not aware of any abilities to allow those files to be uploaded directly through the Kentico UI.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.