New Landing How can we help? Cardinal Adding GoogleFonts to Redux

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Cardinal
  • #222332
    SmallDogCreative
    Member
    Post count: 55

    General question. I want to use a Google Font (Work Sans) that is NOT in the latest Cardinal Google Fonts dropdown (ex: Theme Options > Font Options > Font Family dropdown). I gather that Google Fonts get populated from the Redux framework (GoogleFonts.html and GoogleFonts.json) however, I can’t locate either of these files.

    If I wanted to add the appropriate HTML/JSON snippet to call other Google Fonts that aren’t in the Font Family dropdowns – instead of downloading the font from Google, then uploading it as a Custom Font, how/where would I do that?

    #222517
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    The actual file is: /cardinal/includes/options/inc/fields/typography/googlefonts.php – you would need to edit that JSON and add your font.

    You could also import this from with the theme options custom CSS:

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

    You can then use the font family on your classes:

    .my-class {
    font-family: 'Work Sans', sans-serif!important;
    }

    Cheers,
    David.

    #222656
    SmallDogCreative
    Member
    Post count: 55

    You rock! Thanks!

    #222806
    David Martin – Support
    Moderator
    Post count: 20834

    Glad to help you!
    -David.

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

You must be logged in to reply to this topic.