• 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

metro add google fonts

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 › General Discussion › metro add google fonts

This topic is: not resolved

Tagged: google fonts, Metro

  • This topic has 4 replies, 4 voices, and was last updated 12 years, 8 months ago by Bill Murray.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • February 4, 2013 at 3:19 pm #18009
    jamesalex
    Member

    How do I import the google fonts onto the metro theme please?

     

    Kind regards

    Jamie

    February 4, 2013 at 3:31 pm #18019
    Peter
    Member

    Add the following line at the top of the style.css file, just before the 01 Defaults section;

    @import url('http://fonts.googleapis.com/css?family=YourFont');
    February 6, 2013 at 8:48 am #18433
    jamesalex
    Member

    Hi

     

    Many thanks, although it doesnt seem to be working on this theme, in the functions.php file there is a google font upload text that I am not familiar with.

     

    Kind regards

    Jamie

    May 9, 2013 at 9:23 pm #40227
    bleubeard
    Member

    Hey Jamie,

    Did you ever figure this out?

    May 9, 2013 at 10:53 pm #40234
    Bill Murray
    Member

    @bleubeard - Is this an issue for you as well?

    The advice Peter gave is accurate. You can add Google fonts by either a) using an @import rule in the stylesheet (Peter's advice) OR b) using wp_enqueue_style() in your child theme's functions.php. In other words, do 1 or the other, not both.

    Metro uses method (b). You can stick with that or change it.

    All you need to change is the URL. This is the value that is in single quotes in Peter's example. It's the 2nd parameter of the call to wp_enqueue_style() in the Metro functions.php. You get that URL from Google's web fonts site based on the fonts you want to load.

    Peter's method is safer, because a typo in CSS won't break your site, but a typo in your functions.php will.


    Web: https://wpperform.com or Twitter: @wpperform

    We do managed WordPress hosting.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 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