• 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 Fonts Syntax

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 Fonts Syntax

This topic is: not resolved

Tagged: Google Fonts functions.php

  • This topic has 3 replies, 2 voices, and was last updated 10 years, 11 months ago by David Chu.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • November 22, 2014 at 1:46 pm #132522
    vandalais
    Member

    I can't figure out what is wrong with this syntax.

    add_action( 'wp_enqueue_scripts', 'sp_load_google_fonts' );
    function sp_load_google_fonts() {
    	wp_enqueue_style( 'google-font-droid-serif', '//fonts.googleapis.com/css?family=Droid+Serif:300,700', array(), CHILD_THEME_VERSION );
    }

    Any help is appreciated.


    Follow me on Twitter

    http://www.keithjamesdesigns.com/
    November 23, 2014 at 10:13 am #132580
    David Chu
    Participant

    Hi,
    Your syntax is excellent! 🙂 So I psychically figured out what your question actually meant. You're looking for Italics, right? So you'll need to go back to Google fonts and check the box(es) for italic. Then you'll see what your code should look like for that. Just a couple changes.

    Cheers,
    Dave


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

    November 23, 2014 at 10:45 am #132582
    vandalais
    Member

    Hi David,

    Thanks for the help. I kept on thinking the syntax was wrong and I completely overlooked that I had changed the font to italic.

    Best Regards.
    Keith


    Follow me on Twitter

    November 23, 2014 at 11:09 am #132585
    David Chu
    Participant

    Sounds good!


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ 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

© 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