• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Google font – sample theme

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

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

This topic is: resolved

Tagged: font

  • This topic has 4 replies, 2 voices, and was last updated 11 years, 6 months ago by masonjarsalads.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • December 16, 2013 at 1:53 pm #79542
    masonjarsalads
    Member

    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
    December 16, 2013 at 2:31 pm #79556
    nutsandbolts
    Member

    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/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    December 17, 2013 at 8:29 am #79759
    masonjarsalads
    Member

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

    December 17, 2013 at 9:53 am #79774
    nutsandbolts
    Member

    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/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    December 17, 2013 at 9:56 am #79775
    masonjarsalads
    Member

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

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Google font – sample theme’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble