DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Custom Fonts

Sort:
You are not authorized to post a reply.





New Around Here





    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






    Veteran Member





      Workaround could be to set an @import in the portal.css

       

      Tjep's digital agencyRegards,
      Tycho de Waard

      Tjep's digital agency
      We just love DNN
      https://www.tjeps.com





      Veteran Member





        Posted By Gino Palmia on 12 Aug 2022 06:09 AM

        I entered the following statement on my homepage skinn:

        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

         

         






        New Around Here





          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?






          New Around Here





            Damn the browser cache
            Everything works smoothly.
            Excuse me and thank you ...





            Veteran Member





              Great to hear, Gino. We all have the inventor of cache on the hitlist :-) 

              Tjep's digital agencyRegards,
              Tycho de Waard

              Tjep's digital agency
              We just love DNN
              https://www.tjeps.com





              Veteran Member





                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

                 

                 

                Michael Tobisch
                DNN★MVP

                dnnWerk Austria
                DNN Connect
                You are not authorized to post a reply.

                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:

                1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
                2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
                3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
                4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
                5. No Flaming or Trolling.
                6. No Profanity, Racism, or Prejudice.
                7. Site Moderators have the final word on approving / removing a thread or post or comment.
                8. English language posting only, please.

                Would you like to help us?

                Awesome! Simply post in the forums using the link below and we'll get you started.

                Get Involved