Last active
January 8, 2019 18:03
-
-
Save cliffordp/6c4bad206828ce559cdee290bfcec020 to your computer and use it in GitHub Desktop.
Divi: Disable Open Sans Google Font.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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