fbpx
Disable Google Fonts

How to Disable Google Fonts on WordPress in 2024

Google Fonts are a popular choice in many WordPress themes, offering a wide array of typography options to enhance the look and feel of websites. However, you may need to disable Google Fonts for various reasons, such as improving page speed, adhering to privacy regulations, or using custom fonts instead. In this blog, we’ll explore different methods to disable Google Fonts on WordPress.

Disable Google Fonts

How to Disable Google Fonts on WordPress – Speed Up Your Website

Why Disable Google Fonts?

Here are some common reasons why website owners choose to disable Google Fonts:

  • Faster Website Performance: Loading fonts from external servers, like Google Fonts, can slow down your website.
  • Data Privacy Compliance: Some countries, especially in the EU, have strict laws concerning third-party services that collect user data. Disabling Google Fonts helps comply with these regulations.
  • Customization: You might prefer using your own fonts or system fonts for a more consistent design and branding approach.

Methods to Disable Google Fonts in WordPress

1. Using a Plugin

One of the easiest ways to disable Google Fonts is by using a plugin. Here’s a step-by-step guide:

  1. Go to your WordPress dashboard.
  2. Navigate to Plugins > Add New.
  3. Search for the plugin Disable Google Fonts and install it.
  4. Once installed, activate the plugin.

The plugin will immediately stop Google Fonts from loading across your WordPress site.

2. Manually Disable Google Fonts via functions.php

If you prefer manual customization and are comfortable with coding, you can disable Google Fonts by editing your theme’s functions.php file. Follow these steps:

  1. Go to Appearance > Theme File Editor.
  2. Open the functions.php file of your active theme.
  3. Add the following code to dequeue the Google Fonts:
function disable_google_fonts() {
    wp_dequeue_style( 'your-theme-google-fonts-handle' );
}
add_action( 'wp_enqueue_scripts', 'disable_google_fonts', 20 );

Make sure to replace 'your-theme-google-fonts-handle' with the actual font handle used by your theme.

3. Disabling Google Fonts via Theme Options

Some themes come with built-in options to disable Google Fonts. If your theme supports this feature, you can disable the fonts directly from the theme’s customization settings:

  1. Go to Appearance > Customize.
  2. Look for the Typography or Fonts section.
  3. Disable Google Fonts or switch to system fonts from the available options.

4. Using a Child Theme

If your theme doesn’t allow easy font disabling, creating a child theme is a safe option. You can enqueue custom fonts or disable Google Fonts through your child theme’s functions.php file without affecting the parent theme’s future updates.

Conclusion

Disabling Google Fonts can improve your website’s loading speed, enhance privacy protection, and provide more design flexibility. You can achieve this through a plugin, manually via code, or by tweaking your theme’s settings. Each method ensures that your website performs better and complies with local regulations.


If you encounter any issues or need emergency WordPress support, visit Emergency WordPress Support page for expert help.

ACTIVATE YOUR 35% OFF COUPEN! Everywhere & Every Device,
Your Site Should Flow Seamlessly!

Get a Quote

You can contact me via email/phone above but you’re also welcome to drop me an enquiry through the form below so we can talk about hiring me as your next WordPress developer.