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

This topic contains 3 replies, has 3 voices, and was last updated by  BWSM 6 months ago.

Viewing 4 posts - 1 through 4 (of 4 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

    #13110

    eggtuth
    Participant

    Hello

    I’ve been trying to use a custom font via the custom.css and the styles.css in the Child theme.
    Fonts are uploaded to same folder as custom.css/styles.css (usually works), but I can’t seem to override anything.

    Any clue what could be conflicting?

    Thanks in advance
    J

    #13111

    BWSM
    Keymaster

    Hello, eggtuth

    please send your wp-admin(url/user/pass) via
    my profile contact form , I’ll log in to check it.

    Regards!
    Bwsm

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

You must be logged in to reply to this topic.