Custom fonts instruction and example

nportalru
4 Posts
nportalru posted this 18 February 2020
Ask a Question

Hi.
I read the answers
https://nicepage.com/questions/11400/how-to-use-my-own-true-type-fonts
https://nicepage.com/questions/47542/integrate-your-own-fonts-in-custom-css

I will be grateful for the step-by-step instruction.

For example, like this:

1 Upload the font somewhere connect this font to the website or use web fonts ( https://fonts.google.com/ )
2 Go to: Site settings - CSS, and add (Connect the font. Assign which tags will use the font. Tag list: https://www.w3schools.com/tags/default.asp):

     @font-face {
    font-family: 'Bitstream Vera Serif Bold';
    src: url('https://mdn.mozillademos.org/files/2468/VeraSeBd.ttf');
  } 
  p {
    font-family: 'Bitstream Vera Serif Bold', serif;
  }

3 If you want the font not to be used on the whole site, you must use the element. Insert into it. Go to: Element-. Then the font will be used only in this element.
For hosted and web fonts:

<style type="text/css" media="screen, print">
          @font-face {
            font-family: 'Odibee Sans';
            src: url('https://fonts.googleapis.com/css?family=Odibee+Sans&display=swap');
          }


          p {
            font-family: 'Odibee Sans', cursive;
          }
        </style>
      <p>
        This is Odibee Sans cursive
      </p>

For web fonts:

<style type="text/css" media="screen, print">
@import url('https://fonts.googleapis.com/css?family=Odibee+Sans&display=swap');
p {
    font-family: 'Odibee Sans', cursive;
}


</style>
<p>This is Odibee Sans cursive </p>

Examples in attach (project)

Hi. I read the answers https://nicepage.com/questions/11400/how-to-use-my-own-true-type-fonts https://nicepage.com/questions/47542/integrate-your-own-fonts-in-custom-css I will be grateful for the step-by-step instruction. For example, like this: 1 Upload the font somewhere connect this font to the website or use web fonts ( https://fonts.google.com/ ) 2 Go to: Site settings - CSS, and add (Connect the font. Assign which tags will use the font. Tag list: https://www.w3schools.com/tags/default.asp): @font-face { font-family: 'Bitstream Vera Serif Bold'; src: url('https://mdn.mozillademos.org/files/2468/VeraSeBd.ttf'); } p { font-family: 'Bitstream Vera Serif Bold', serif; } 3 If you want the font not to be used on the whole site, you must use the element. Insert into it. Go to: Element-. Then the font will be used only in this element. For hosted and web fonts: <style type="text/css" media="screen, print"> @font-face { font-family: 'Odibee Sans'; src: url('https://fonts.googleapis.com/css?family=Odibee+Sans&display=swap'); } p { font-family: 'Odibee Sans', cursive; } </style> <p> This is Odibee Sans cursive </p> For web fonts: <style type="text/css" media="screen, print"> @import url('https://fonts.googleapis.com/css?family=Odibee+Sans&display=swap'); p { font-family: 'Odibee Sans', cursive; } </style> <p>This is Odibee Sans cursive </p> Examples in attach (project)
Vote to pay developers attention to this features or issue.
4 Replies
Order By: Standard | Newest
Support Team
Support Team posted this 18 February 2020

Hi,

In general, the instruction is almost the same as you provided.

  1. upload font somewhere
  2. add @font-face rule with the path to the font file to the Site Settings >> CSS
  3. this step is the most difficult because you need to declare font-family for elements where you want this font to display. Nicepage sets basic font to .u-body element. Then this font can be overridden for all other elements separately. I suggest that you do not use google fonts if you plan to use custom font. Please use safe fonts for both Text and Headings and do not change the font of all other text controls in the project. Or you will need to set custom fonts for all these elements manually.

Please let us know if you have any further questions.

...................................................
Sincerely,
Olivia
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi, In general, the instruction is almost the same as you provided. 1. upload font somewhere 2. add @font-face rule with the path to the font file to the Site Settings >> CSS 3. this step is the most difficult because you need to declare font-family for elements where you want this font to display. Nicepage sets basic font to .u-body element. Then this font can be overridden for all other elements separately. I suggest that you do not use google fonts if you plan to use custom font. Please use safe fonts for both Text and Headings and do not change the font of all other text controls in the project. Or you will need to set custom fonts for all these elements manually. Please let us know if you have any further questions. ................................................... Sincerely, Olivia Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
Support Team
Support Team posted this 28 April 2020
code-in-ui.png

code-on-page.png

...................................................
Sincerely,
Nicepage Demo Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

!code-in-ui.png! !code-on-page.png! ................................................... Sincerely, Nicepage Demo Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
f.fruend
3 Posts
f.fruend posted this 28 November 2022

Hello, is this possible in the Personal Plan or do I need to have the Business Plan?

Hello, is this possible in the Personal Plan or do I need to have the Business Plan?
Support Team
Support Team posted this 30 November 2022

Hello,

Unfortunately, the upload of custom fonts is not available in the Personal license. This feature can be used starting from the Business license.

Let us know if you need our further help!
...................................................
Sincerely,
Anna T
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hello, Unfortunately, the upload of custom fonts is not available in the Personal license. This feature can be used starting from the Business license. Let us know if you need our further help! ................................................... Sincerely, Anna T Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
You must log in or register to leave comments