Skip to main content
Cookbook Performance

Self-host Google Fonts locally with AI

Serve your theme's Google Fonts from your own domain, for faster loads and GDPR compliance.

Difficulty Intermediate
Time ~10 min
Tools run_wp_cli

Prerequisites

A connected site whose theme loads Google Fonts. OMGF stays installed as the ongoing solution, and your host must allow the plugin to download the font files.

The prompt
Self-host the Google Fonts on my site so nothing loads from Google's servers, for both speed and GDPR. Install and activate the OMGF plugin (host-webfonts-local) if it is not already active, then let it detect the Google Fonts my theme loads, download them locally, and rewrite my pages to serve the fonts from my own domain. When it is done, load my homepage and confirm there are no more requests to fonts.googleapis.com or fonts.gstatic.com, and tell me exactly which font families you localized. If any font stops rendering, flag it so I can adjust.

Already connected to WPVibe?

Skip the copy-paste. Just ask your AI for the “Self-host Google Fonts locally with AI” recipe, or describe the task, and WPVibe runs these steps on your own site.

Most themes pull their fonts straight from Google’s servers on every page load. That means an extra DNS lookup and connection to a third party before your text can render, and in the EU it is a real GDPR headache, because Google sees each visitor’s IP address. You do not want different fonts, you want the exact same ones, just served from your own domain so nothing leaves the page to fetch them.

Ask your AI assistant and it sets up local font hosting with OMGF, the standard plugin for this. It detects the Google Fonts your theme loads, downloads the actual font files into your own uploads folder, and rewrites your pages to serve them from your domain instead of fonts.googleapis.com. The fonts look identical on screen; the third-party call is simply gone. It then reports which families it localized so you can confirm the swap worked.

Paste the prompt and let it install and run OMGF, which stays on as your ongoing solution. Afterward, load your site and check the fonts still render the way you expect, since a handful of themes hard-code font URLs that need a manual nudge. If a font looks off, tell the assistant which one and it will adjust the OMGF settings for you.

Outcome

Your theme's Google Fonts served from your own domain via OMGF, with no calls to Google's servers and the same fonts on the page.