Skip to content

Instantly share code, notes, and snippets.

@cliffordp cliffordp/functions.php
Last active Jan 8, 2019

Embed
What would you like to do?
Divi: Disable Open Sans Google Font.
<?php
/**
* Divi: Disable Open Sans Google Font.
*
* @link https://gist.github.com/cliffordp/6c4bad206828ce559cdee290bfcec020 This snippet.
* @link https://designsbytierney.com/2017/06/optimize-google-font-delivery-wordpress-divi-theme/ Related advice for Elegant Themes users.
*/
add_action( 'wp_enqueue_scripts', function() {
wp_dequeue_style( 'divi-fonts' );
}, 20 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.