New Landing How can we help? Themeforest Theme Support Dante Google Webfont is not in dropdown. How to obtain it

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Dante
  • #298175
    Jeff54
    Member
    Post count: 24

    Hi,

    If I have a Google Webfont https://fonts.google.com/specimen/Fira+Sans that’s not in the dropdown (Theme options -> Font Options -> Standard Google Font. How do I import it?

    Adding this @import “https://fonts.googleapis.com/css?family=Fira+Sans”; to the custom css doesn’t work…

    I Hope you can help me out.

    Best wishes,

    Roy

    #298500
    David Martin – Support
    Moderator
    Post count: 20834

    Hi Roy,

    The import rule would be:

    @import url('https://fonts.googleapis.com/css?family=Fira+Sans');

    Then you would use this CSS also to add the font family to various fonts, ex h1:

    h1 {
    font-family: 'Fira Sans', sans-serif;
    }

    To add the font, you will need to modify the theme, open /themes/dante/includes/options/fields/google_webfonts/jquery.fontselect.js and locate the last font item, 'Zeyada:400'

    Replace that with this:

    'Zeyada:400',
    'Zeyada:400',
    'Fira Sans:300',
    'Fira Sans:400',
    'Fira Sans:500',
    'Fira Sans:700'
    #298586
    Jeff54
    Member
    Post count: 24

    Thank you David for your help!! It helped me and it’s a nice reference for in the future.
    Cheers Roy

    #298587
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    No problem. Thanks David
    -Rui

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