Okay
  Public Ticket #570749
Custom font on entire website
Closed

Comments

  • Henrik started the conversation

    Hi,

    1) Can i use my custom font for the entire website text including homepage slides etc.?

    2) What CSS do i need to add to which file for this to work?

    I would think i should upload the file to /fonts inside the them folder - is that correct?

    Many thanks,

    Henrik Mark


  •  1,973
    Support replied

    Hello Henrik,

    Here is an article explaining in great detail how to add custom fonts:

    https://clapat.ticksy.com/article/4290

    Yes, you need to add the font files in one the theme\'s folders (you can create a new one for example)

    thanks

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  • Henrik replied

    Hi,


    I have now created the folder and uploaded the font.

    The i have added the following to the style.css file:

    @font-face {

    font-family: TstarRegular;

    src: url(theimagefaculty.dk/wordpress/wp-content/themes/newave-theme/fonts/tstar-regular-webfont.ttf);

    font-weight: normal;

    }

    If i paste the URL into my browser it downloads the font, so the path is correct!

    I then updated all \"font-family\" tags in the style.css but the font does\'t change.

    How do i get the font to change? Should i change something on the Typography preference page or in another css file?


    Thanks!

    Henrik

  • Henrik replied

    Hi again,


    Forgot the importance of starting the path with \'http://\' - sorry about that!

    It is working now :-)


    Thank you for your help!

    Cheers,

    Henrik

  •  1,973
    Support replied

    Allright! Welcome, glad it\'s working.

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy