Google font – sample theme

Community Forums Forums Design Tips and Tricks Google font – sample theme

This topic is: resolved

Tagged: 

This topic contains 4 replies, has 2 voices, and was last updated by  masonjarsalads 10 months, 1 week ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #79542

    masonjarsalads
    Member
    Post count: 99

    I am using the Genesis Sample Child Theme, if I want to change the google font can I do so here….

    //* Enqueue Lato Google font
    add_action( ‘wp_enqueue_scripts’, ‘genesis_sample_google_fonts’ );
    function genesis_sample_google_fonts() {
    wp_enqueue_style( ‘google-font-lato’, ‘//fonts.googleapis.com/css?family=Lato:300,700′, array(), CHILD_THEME_VERSION );
    }

    http://www.masonjarsalads.com
    #79556

    nutsandbolts
    Moderator
    Post count: 3166

    Yes, you just need to replace this part:

    //fonts.googleapis.com/css?family=Lato:300,700

    then find all instances of Lato in your stylesheet and change them to the new font name.


    Andrea Whitmer, Owner, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

    #79759

    masonjarsalads
    Member
    Post count: 99

    Thank you, what about the ‘google-font-lato’, before the code you copied?

    #79774

    nutsandbolts
    Moderator
    Post count: 3166

    Yes, you’ll want to change that as well, though it doesn’t have any impact on the function itself. It’s just a comment to let you know what the function is for.


    Andrea Whitmer, Owner, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

    #79775

    masonjarsalads
    Member
    Post count: 99

    Thanks, I noticed it worked without changing it but wanted to be sure.

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

You must be logged in to reply to this topic.