I entered the following statement on my homepage skinn:
<dnn:DnnCssInclude ID="FontCSS" runat="server" FilePath="Font/Quicksand/static/Quicksand-Regular.ttf" PathNameAlias="SkinPath" />
Then, on the css sheet of the skinn I called the font family like this
html, body, form { font-family: Quicksand, sans-serif;}
But it doesn't work properly ....
Any suggestions?
DNN Platform Version = 9.1.1
Workaround could be to set an @import in the portal.css
Posted By Gino Palmia on 12 Aug 2022 06:09 AM I entered the following statement on my homepage skinn: <dnn:DnnCssInclude ID="FontCSS" runat="server" FilePath="Font/Quicksand/static/Quicksand-Regular.ttf" PathNameAlias="SkinPath" /> Then, on the css sheet of the skinn I called the font family like this html, body, form { font-family: Quicksand, sans-serif;} But it doesn't work properly .... Any suggestions? DNN Platform Version = 9.1.1
Did you inspect the HTML source (f12) to see if the font file is loaded?
BTW, I would also strongly advise you to upgrade DNN as a some serious issues have been fixed since version 9.1.1
Thanks Timo for the answer ... Yes ... the font file is loaded according to the inspector. I forgot to mention that in the Skin.css file I had also added the @font-face rule, so ... @font-face { font-family: 'Quicksand'; src: url ('Font / Quicksand / Quicksand-Regular.ttf') format ('truetype'); font-style: normal; font-weight: 400; } This rule, however, according to the inspector, does not appear .... Why?
Great to hear, Gino. We all have the inventor of cache on the hitlist :-)
Posted By Gino Palmia on 8/12/2022 4:52 PM Damn the browser cache Everything works smoothly. Excuse me and thank you ...
When changing things in a stylesheet, I turn the browser cache off by pressing [F12], go to Network and activate the checkbox Disable Browser Cache.
Happy DNNing! Michael
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.