Home Forums Arnold WordPress Theme How to install custom fonts in wordpress

This topic contains 1 reply, has 2 voices, and was last updated by  BWSM 2 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #12927

    aaronfeng
    Participant

    Hi,

    Is there a way to upload my own fonts to the theme in wordpress?

    Thank you

    #12929

    BWSM
    Keymaster

    Hi,

    The font setting is listed only Google fonts. It is not possible to add custom font with Google font in selector.
    You need upload the custom font files(e.g. Baskerville) to the site server.

    define the font by the custom css code:

    @font-face {
        font-family: Baskerville; font-weight: normal; font-style: normal; 
        src: url('styles/fonts/Baskerville.woff') format('woff'), url('styles/fonts/Baskerville.ttf') format('truetype');
    }

    if you want to use it as heading font, set the font for class like:
    h1,h2,h3,h4,h5,h6 {font-family: Baskerville;}

    Regards!
    Bwsm – uiueux.comTwitterFacebook

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.