New Landing How can we help? Themeforest Theme Support Joyn Adding Custom Fonts

Viewing 9 posts - 1 through 9 (of 9 total)
  • Posted in: Joyn
  • #171374
    Taffy
    Member
    Post count: 261

    How do I add custom fonts.

    I bought and was provided .css, .eot, .svg, .ttf, .woff file formats, but none seem to want to load via the Add Font options under Font Options.

    Please advise.

    #171375
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    If you would like to add your own @font-face fonts, then here are a few tips to do so. We’d recommend that you use the Font Squirrel web font generator, found here – http://www.fontsquirrel.com/tools/webfont-generator.

    You’ll need to upload your font files to your server via FTP, or you could upload them one by one to the WordPress Media Manager. Once you’ve uploaded them, you will need to reference them using the following css. You can add this to the custom css box within theme options, or within the child theme css if you are using a child theme. When you download the kit from Font Squirrel, you will find a file named “stylesheet.css” within the zipped folder. This file contains the full @font-face declaration for your uploaded font. We’ve placed a reference for you below:

    @font-face {
        font-family: 'FONT_NAME';
        src: url('FONT_URL.eot');
        src: url('FONT_URL.eot?#iefix') format('embedded-opentype'),
             url('FONT_URL.woff') format('woff'),
             url('FONT_URL.ttf') format('truetype'),
             url('FONT_URL.svg#FONT_NAME') format('svg');
        font-weight: normal;
        font-style: normal;
    }
    
    // BODY FONT
    body, h6 {
    	font-family: "FONT_NAME", Arial, Helvetica, Tahoma, sans-serif;
    }
    
    // HEADINGS FONT
    h1, h2, h3, h4, h5, .custom-caption p, span.dropcap1, span.dropcap2, span.dropcap3, span.dropcap4, .spb_call_text, .impact-text, .impact-text-large, .testimonial-text, .header-advert, .sf-count-asset .count-number, #base-promo, .sf-countdown, .sf-icon-character, .fancy-heading h1 {
    	font-family: "FONT_NAME", Arial, Helvetica, Tahoma, sans-serif;
    }

    Thanks
    Mohammad

    #171392
    Taffy
    Member
    Post count: 261

    Hi Mo,

    I have added this to my Custom CSS.

    Now how do I access the font?

    @font-face {
    font-family: ‘ThirstySoftRegular’;
    src: url(‘http://taffydev.com.au/clients/bbb/fonts/thirsty-soft-regular.eot’);
    src: url(‘http://taffydev.com.au/clients/bbb/fonts/thirsty-soft-regular.eot?#iefix’) format(’embedded-opentype’),
    url(‘http://taffydev.com.au/clients/bbb/fonts/thirsty-soft-regular.woff2’) format(‘woff2’),
    url(‘http://taffydev.com.au/clients/bbb/fonts/thirsty-soft-regular.woff’) format(‘woff’),
    url(‘http://taffydev.com.au/clients/bbb/fonts/thirsty-soft-regular.ttf’) format(‘truetype’),
    url(‘http://taffydev.com.au/clients/bbb/fonts/thirsty-soft-regular.svg#youworkforthem’) format(‘svg’);
    font-weight: normal;
    font-style: normal;
    }
    /* BODY FONT */
    body, h6 {
    font-family: “ThirstySoftRegular”, Arial, Helvetica, Tahoma, sans-serif;
    }

    /* HEADINGS FONT */
    h1, h2, h3, h4, h5, .custom-caption p, span.dropcap1, span.dropcap2, span.dropcap3, span.dropcap4, .spb_call_text, .impact-text, .impact-text-large, .testimonial-text, .header-advert, .sf-count-asset .count-number, #base-promo, .sf-countdown, .sf-icon-character, .fancy-heading h1 {
    font-family: “ThirstySoftRegular”, Arial, Helvetica, Tahoma, sans-serif;
    }

    #171399
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please add !important to css rule.
    Thanks
    Mohammad

    #171400
    Taffy
    Member
    Post count: 261

    Worked that out.

    Thanks again.

    #171402
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome.
    Thanks
    Mohammad

    #178952
    themartist
    Member
    Post count: 122

    just purchased Joyn – where can I upload the custom webfonts… they aren’t allowing me tom upload

    #178954
    themartist
    Member
    Post count: 122

    sorry… just saw that its inside the redux folder in uploads

    #178966
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Its ok.
    Thanks
    Mohammad

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register