Add custom font

Support Forums Cian – WP Theme Add custom font

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4351
    woohoogle
    Participant

    Hi, what is the best way to add a new custom font into the theme.
    The one I have in mind is not a Google Font, so I need to add the files.
    Thanks

    #4352
    CreaboxThemes
    Keymaster

    Hi woohoogle,

    I will upload the fonts files to the media library and I will copy all the url’s. Then, in the page Appeareance > Theme Options > Custom Scripts, in the option ‘Custom CSS’, you have to add the fonts in this way:

    @font-face {
        font-family: myFirstFont;
        src: url(font_file.ttf);
    }
    
    div {
        font-family: myFirstFont;
    }

    Regards

    • This reply was modified 5 years, 8 months ago by CreaboxThemes.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.