# Stop Divi From Loading Google Fonts

> Turns off Divi's Google Fonts option and removes the default Open Sans stylesheet, so no font requests go to Google from your Divi site.

- Type: PHP
- Runs: Run everywhere
- Category: [Page Builders & Themes](https://wpide.com/library/category/page-builders/)
- Tags: divi, fonts, privacy, performance
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/divi-disable-google-fonts/

## Code

```php
add_filter( 'option_et_divi', function ( $options ) {
    if ( is_array( $options ) ) {
        $options['et_use_google_fonts'] = 'off';
    }

    return $options;
} );

add_action( 'wp_enqueue_scripts', function () {
    wp_dequeue_style( 'divi-fonts' );
}, 20 );
```

## Notes

Text falls back to your theme's other fonts; upload your own fonts in Divi if you need a specific typeface.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Stop Divi From Loading Google Fonts" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
