• 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 hosted locally – not working

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 › Google Fonts hosted locally – not working

This topic is: resolved

Tagged: google fonts, lifestyle Pro

  • This topic has 3 replies, 2 voices, and was last updated 5 years, 2 months ago by AnneBremer.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • March 20, 2017 at 4:49 am #203433
    AnneBremer
    Participant

    My customer only wants Google fonts hosted locally for this site (still under development).

    I use Lifestyle Pro. For WordPress I have disabled the Google Fonts with the Plugin Disable Google Fonts (https://de.wordpress.org/plugins/disable-google-fonts/).

    For installing the Google Fonts locally I have followed the instructions given in this post by Victor Font: https://victorfont.com/use-google-fonts-locally/.

    Also, I have included preloading for the fonts in the header section of the theme.

    Unfortunately, it takes an awfully long time for the font to load, even if I use caching. The only browser which is working fine is Microsoft Edge.

    It did not help to disable the "Disable Google Fonts" plugin.

    Any ideas what I am doing wrong/missing here?

    Thanks in advance for your help.

    http://dev.markus-holtermann.de/
    March 20, 2017 at 6:23 am #203436
    Victor Font
    Moderator

    You are preloading the fonts with the https protocol on a site that does not have https enabled. This will cause a loading problem.

    You are preloading the fonts from a directory called WordPress

    You are not loading the fonts from the child theme directory in your style sheet.

    Basically, the paths in the preload and style sheet don't match and you are using the wrong protocol.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    March 20, 2017 at 8:27 am #203459
    Victor Font
    Moderator

    As an FYI, the directory from which you are trying to load the fonts in style.css is /wp-content/themes/fonts/


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    March 20, 2017 at 10:19 am #203478
    AnneBremer
    Participant

    Thanks a lot Victor, that did it! I really appreciate your help!

    So just to sum it up, my mistake was that I did not put the fonts in the directory /wp-content/themes/fonts/ and did not use correct links for preloading.

    In Germany we say sometimes you don't see the wood for the trees ...

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

© 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