Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JustThomas committed May 25, 2015
1 parent a7b0cf1 commit cf9a6ed
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
# WordPress-Remove-Google-Fonts
Prevent WordPress from loading Google Fonts
WordPress plugin to prevent WordPress from loading Google Fonts

## Description ##
The purpose of this plugin is pretty much the same as with the "[Disable Google Fonts](https://wordpress.org/plugins/disable-google-fonts/)" plugin. It aims at preventing WordPress from embedding CSS files from the Google Fonts servers.

The difference is that the "Disable Google Fonts" plugin only removes Google Fonts that are loaded by WordPress itself or by one of the bundled themes "Twenty Thirteen", "Twenty Fourteen" or "Twenty Fifteen".

This plugin takes a different approach. It uses the `style_loader_src` filter provided by WordPress to remove all Google Fonts CSS files that have been enqueued using the `wp_enqueue_style()` function.

**Note:** Some themes and plugins may include Google Fonts without ever using the `wp_enqueue_style` function. In such cases, this plugin is *not* able to prevent WordPress from loading the fonts from the Google server. So you have to check for yourself if this plugin works for you.

0 comments on commit cf9a6ed

Please sign in to comment.