• 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 don't work with Essence Pro 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 Fonts don't work with Essence Pro Theme

This topic is: not resolved

Tagged: Essence Pro, google fonts

  • This topic has 4 replies, 2 voices, and was last updated 3 years ago by Brad Dalton.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • May 21, 2019 at 8:21 am #491270
    HeatherO
    Participant

    I have tried a bunch of different Google Fonts with this theme and they don't work. I tested the same Google fonts with another theme and they work so it must be something to do with the Essence pro theme. I am experienced with this so it's not the GF setup, it's the theme.

    When I add the fonts it sometimes will change the site fonts but not to what I want, sort of the secondary font. For example, if I use this:
    font-family: 'Bungee', cursive;
    It will put the default cursive font, not the one I want (Bungee).

    I have tried with MANY different fonts and have the same issue.

    May 21, 2019 at 8:39 am #491271
    Brad Dalton
    Participant

    Once you load Google fonts using PHP code, you can then use them in your style sheets CSS rules.

    Maybe your fonts are not loading correctly using your PHP code.


    2700 Genesis Tutorials

    May 21, 2019 at 8:43 am #491272
    HeatherO
    Participant

    "Once you load Google fonts using PHP code"
    Are you talking about the code you add to the head tags?
    <link href="https://fonts.googleapis.com/css?family=Bungee&display=swap" rel="stylesheet">

    CSS
    font-family: 'Bungee', cursive;

    This is what I do all the time and it is not working with this theme.

    May 21, 2019 at 8:46 am #491273
    HeatherO
    Participant

    Got it working. For some reason, it only works if I add the head tag info after the Google Analytics code. I'll have to check the GA code. Thanks.

    May 21, 2019 at 8:48 am #491274
    Brad Dalton
    Participant

    Your CSS looks right however you might want to load your fonts using PHP code in functions.php

    add_action( 'wp_enqueue_scripts', 'wpsites_google_fonts' );
    function wpsites_google_fonts() {
    wp_enqueue_style( 'gfonts', '//fonts.googleapis.com/css?family=Bungee', array(), CHILD_THEME_VERSION );
    }
    

    And remove your HTML from the header scripts box


    2700 Genesis Tutorials

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 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

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