• First of all, thanks so much for creating this plugin. I was shocked when I first installed WordPress and saw the requests to Google to pull the fonts, but happy to find this plugin available and updated!

    Is it possible to host fonts locally instead of removing them? For instance, uploading Montseratt and using the URL from the server for that instead of pulling from gstatic or fonts.google?

    I’m also curious about the other scripts pulled from Google in script-loader.php. Can we host these ajax files as well?

    Thanks for any help in advance,
    wilton_

    https://www.ads-software.com/plugins/disable-google-fonts/

Viewing 1 replies (of 1 total)
  • Thread Starter wilton_

    (@wilton_)

    These are the files and lines where I found “google” mentioned in WordPress’s default install of the twentysixteen theme:

    ./wp-admin/includes/class-wp-site-icon.php:53:		 * @link https://developers.google.com/web/updates/2014/11/Support-for-theme-color-in-Chrome-39-for-Android
    ./wp-admin/includes/network.php:184:				'https://www.google.com/search?q=apache+mod_rewrite'
    ./wp-admin/includes/class-wp-press-this.php:812:			$open_sans_font_url = ',' . add_query_arg( $query_args, 'https://fonts.googleapis.com/css' );
    ./wp-content/themes/twentysixteen/genericons/genericons.css:161:.genericon-googleplus:before { content: "\f206"; }
    ./wp-content/themes/twentysixteen/genericons/genericons.css:162:.genericon-googleplus-alt:before { content: "\f218"; }
    ./wp-content/themes/twentysixteen/genericons/README.md:106:*Again, it is important if you choose to update to this version, make sure you're not using <code>genericon-googleplus-alt</code> or unicode character <code>f218</code>, as that has been retired! Use <code>genericon-googleplus</code> and glyph <code>f206</code> instead!*
    ./wp-content/themes/twentysixteen/style.css:952:.social-navigation a[href*="plus.google.com"]:before {
    ./wp-content/themes/twentysixteen/functions.php:207:		), 'https://fonts.googleapis.com/css' );
    ./wp-includes/ID3/module.audio-video.riff.php:1326:		// https://code.google.com/p/amv-codec-tools/wiki/AmvDocumentation
    ./wp-includes/vars.php:68:			if ( $is_chrome = apply_filters( 'use_google_chrome_frame', $is_admin ) )
    ./wp-includes/atomlib.php:6: * @link https://code.google.com/p/phpatomlib/
    ./wp-includes/script-loader.php:173:	$scripts->add( 'prototype', 'https://ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js', array(), '1.7.1');
    ./wp-includes/script-loader.php:174:	$scripts->add( 'scriptaculous-root', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js', array('prototype'), '1.9.0');
    ./wp-includes/script-loader.php:175:	$scripts->add( 'scriptaculous-builder', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/builder.js', array('scriptaculous-root'), '1.9.0');
    ./wp-includes/script-loader.php:176:	$scripts->add( 'scriptaculous-dragdrop', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/dragdrop.js', array('scriptaculous-builder', 'scriptaculous-effects'), '1.9.0');
    ./wp-includes/script-loader.php:177:	$scripts->add( 'scriptaculous-effects', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/effects.js', array('scriptaculous-root'), '1.9.0');
    ./wp-includes/script-loader.php:178:	$scripts->add( 'scriptaculous-slider', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/slider.js', array('scriptaculous-effects'), '1.9.0');
    ./wp-includes/script-loader.php:179:	$scripts->add( 'scriptaculous-sound', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/sound.js', array( 'scriptaculous-root' ), '1.9.0' );
    ./wp-includes/script-loader.php:180:	$scripts->add( 'scriptaculous-controls', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/controls.js', array('scriptaculous-root'), '1.9.0');
    ./wp-includes/script-loader.php:708:		$open_sans_font_url = "https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600&subset=$subsets";
    ./wp-includes/js/tinymce/plugins/media/plugin.js:21:		{regex: /maps\.google\.([a-z]{2,3})\/maps\/(.+)msid=(.+)/, type: 'iframe', w: 425, h: 350, url: '//maps.google.com/maps/ms?msid=$2&output=embed"', allowFullscreen: false}
    ./wp-includes/js/tinymce/plugins/media/plugin.min.js
    ./wp-includes/css/dashicons.css:802:.dashicons-googleplus:before {
Viewing 1 replies (of 1 total)
  • The topic ‘Hosting Fonts Locally & Removing Google Scripts’ is closed to new replies.