Title: Replace a font reference
Last modified: March 25, 2021

---

# Replace a font reference

 *  Resolved [msdesignfoto](https://wordpress.org/support/users/msdesignfoto/)
 * (@msdesignfoto)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/replace-a-font-reference/)
 * Hello
 * I’m working on an online store and its mostly finished, we’re just polishing 
   and finishing some minor details. However, I do have a question I can’t see how
   to solve:
 * I’ve optimized the site speed a bit with W3 Cache and Async JS, already noticed
   a speed increase in real-use and testing sites. But the Page Speed Insights still
   warns about some font is being loaded (Roboto). I used Easy Google fonts to replace
   all fonts by Arial for now (all Headers and Paragraph), until we decide what 
   to do next. Speed Insights still annoys me with the Roboto font (among other 
   stuff) is being loaded and delaying everything.
 * How can I replace Roboto font by any other, in order to speed up the site opening
   process?
 * The final font may not be Arial, it can be something similar, but as it is right
   now feels ok.
 * Regards
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Freplace-a-font-reference%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [5 years, 2 months ago](https://wordpress.org/support/topic/replace-a-font-reference/#post-14235891)
 * If you really want to optimize for speed, use [system fonts](https://css-tricks.com/snippets/css/system-font-stack/).
 * This is where you seem to be pulling Roboto:
    `link rel='stylesheet' id='shoppingcart-
   google-fonts-css' href='//fonts.googleapis.com/css?family=Roboto%3A300%2C400%
   2C400i%2C500%2C600%2C700&ver=5.7' type='text/css' media='all' />`
 * Are you using some shopping cart plugin?
 *  Thread Starter [msdesignfoto](https://wordpress.org/support/users/msdesignfoto/)
 * (@msdesignfoto)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/replace-a-font-reference/#post-14235940)
 * No, the shopping cart is part of the theme. We have YITH Wishlist but thats not
   the shopping cart itself.
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [5 years, 2 months ago](https://wordpress.org/support/topic/replace-a-font-reference/#post-14236008)
 * You’ll have to fix that in the theme’s code.
 *  Thread Starter [msdesignfoto](https://wordpress.org/support/users/msdesignfoto/)
 * (@msdesignfoto)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/replace-a-font-reference/#post-14236030)
 * The current theme is a child theme, so I guess I can just remove those lines 
   and see the difference.
 * Thanks!
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [5 years, 2 months ago](https://wordpress.org/support/topic/replace-a-font-reference/#post-14236034)
 * It should be an wp_enqueue_script function call in the child’s functions.php.
   Don’t forget to check the CSS for any use of that font.
    -  This reply was modified 5 years, 2 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).

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

The topic ‘Replace a font reference’ is closed to new replies.

## Tags

 * [font](https://wordpress.org/support/topic-tag/font/)
 * [Insight](https://wordpress.org/support/topic-tag/insight/)
 * [roboto](https://wordpress.org/support/topic-tag/roboto/)
 * [speed](https://wordpress.org/support/topic-tag/speed/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 5 replies
 * 2 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/replace-a-font-reference/#post-14236034)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
