LocalFonts automatically detects, downloads, and serves Google Fonts from your own server instead of loading them from Google’s external CDN. No manual configuration needed — just activate and your site’s fonts are instantly self-hosted.
Loading web fonts from Google’s servers (fonts.googleapis.com and fonts.gstatic.com) sends your visitors’ IP addresses to Google with every page load. This raises serious privacy concerns and has legal implications under data protection regulations worldwide.
This plugin intercepts Google Fonts loaded through every common method used by WordPress themes, plugins, and page builders:
wp_enqueue_style() using the Google Fonts CSS API v1 (/css?family=) and CSS API v2 (/css2?family=)<link> tags — Font references hardcoded directly in theme templates, header.php, footer.php, or plugin output@import url(...) rules — Import statements in inline <style> blocks and external stylesheets@import "..." rules — Import statements without the url() wrapper (valid CSS syntax)/icon endpoint at fonts.googleapis.com for Material Design icon fonts and Material Symbols//fonts.googleapis.com (without https:)& and other HTML entities commonly output by themes and page buildersIt also removes dns-prefetch and preconnect resource hints for fonts.googleapis.com and fonts.gstatic.com, ensuring your site makes absolutely zero connections to Google’s font servers.
Font files are stored in wp-content/uploads/lgfl-fonts/ with each unique font URL getting its own subdirectory.
LocalFonts works with virtually any WordPress setup: