Title: Google Font Not Working
Last modified: June 20, 2021

---

# Google Font Not Working

 *  Resolved [Mushlih Almubarak](https://wordpress.org/support/users/mushlih/)
 * (@mushlih)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/google-font-not-working/)
 * Hi
    I’m trying to add this code (google font link) in your theme’s header.php:
 *     ```
       <link rel="preconnect" href="https://fonts.gstatic.com">
       <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap" rel="stylesheet">
       ```
   
 * But when I “view page source” I only see the `<link rel="preconnect" href="https://
   fonts.gstatic.com">` code and don’t see the `<link href="https://fonts.googleapis.
   com/css2?family=Roboto:wght@100&display=swap" rel="stylesheet">` code
    Why? Thank
   you
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgoogle-font-not-working%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Theme Author [Creative Themes](https://wordpress.org/support/users/creativethemeshq/)
 * (@creativethemeshq)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/google-font-not-working/#post-14577476)
 * Hi [@mushlih](https://wordpress.org/support/users/mushlih/),
    Why would you need
   to add this Google font manually? Blocksy already supports Google fonts out of
   the box.
 *  Thread Starter [Mushlih Almubarak](https://wordpress.org/support/users/mushlih/)
 * (@mushlih)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/google-font-not-working/#post-14577620)
 * > Blocksy already supports Google fonts out of the box.
 * Does it load the fonts directly through the google site? And not saved in my 
   website files?
    Because I want the fonts to be loaded from external links (google)
   so that my site loads faster and less heavy
 *  Theme Author [Creative Themes](https://wordpress.org/support/users/creativethemeshq/)
 * (@creativethemeshq)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/google-font-not-working/#post-14577627)
 * Hi [@mushlih](https://wordpress.org/support/users/mushlih/),
    Yes, that’s exactly
   how Google Fonts are working by default (they are loaded from Google server).
 * They will be loaded from your own server only if you activate the Local Google
   Fonts extension.
 * Hope this clarifies everything.
 *  Thread Starter [Mushlih Almubarak](https://wordpress.org/support/users/mushlih/)
 * (@mushlih)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/google-font-not-working/#post-14577835)
 * But why i can’t see the `fonts.google.com` at page source code
    -  This reply was modified 4 years, 10 months ago by [Mushlih Almubarak](https://wordpress.org/support/users/mushlih/).
 *  Thread Starter [Mushlih Almubarak](https://wordpress.org/support/users/mushlih/)
 * (@mushlih)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/google-font-not-working/#post-14577885)
 * I also use elementor pro to display single posts on my site, does it also use
   the font from your theme (google font)?
    How do i verify that the fonts on my
   web are loaded from google fonts?
 *  [Eduard](https://wordpress.org/support/users/cteduard/)
 * (@cteduard)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/google-font-not-working/#post-14577961)
 * Hello [@mushlih](https://wordpress.org/support/users/mushlih/)
 * Depending on your website configuration, you might have some caching solution
   implemented. The fonts API is called only when you’ve actually selected a Google
   Font from the customiser. If you select the default system ones, no API calls
   will be made.
 * Also, Elementor likes to play by its own rules sometimes and it has separate 
   font styling configurations with separate fonts API calls.
 * Hope this clears it up a bit.
 *  Thread Starter [Mushlih Almubarak](https://wordpress.org/support/users/mushlih/)
 * (@mushlih)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/google-font-not-working/#post-14578072)
 * Ok, thank you

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Google Font Not Working’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/blocksy/2.1.41/screenshot.jpg)
 * Blocksy
 * [Support Threads](https://wordpress.org/support/theme/blocksy/)
 * [Active Topics](https://wordpress.org/support/theme/blocksy/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/blocksy/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/blocksy/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [Mushlih Almubarak](https://wordpress.org/support/users/mushlih/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/google-font-not-working/#post-14578072)
 * Status: resolved