Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@andrezrv
Created February 2, 2017 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrezrv/e765657f4e3c5770c17d03b5575f9f7f to your computer and use it in GitHub Desktop.
Save andrezrv/e765657f4e3c5770c17d03b5575f9f7f to your computer and use it in GitHub Desktop.
For WordPress, prevent Airplane Mode plugin from blocking Google Fonts.
<?php
// Prevent Airplane Mode from blocking Google Fonts.
add_filter( 'airplane_mode_parse_style', function( $value, $parsed ) {
if ( 'fonts.googleapis.com' === $parsed ) {
$value = false;
}
return $value;
}, 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment