Embed fonts

Updated

Usage

Open Appearance → Customize → Scripts & Embeds → Embed fonts when you need a font that isn't in Dirigible Fonts. Paste a Google Fonts stylesheet link, with the weights you need, into Optimized font URL.

Use Generic font embed when a Google Fonts link won't work, such as an Adobe Fonts (Typekit) embed code or a stylesheet from another font service.

Both fields load a stylesheet on every page, so only Administrators and Managers see this section. Other roles that can open the Customizer, such as WooCommerce's Shop Manager, can't change them.

When to use it

  • Your brand uses a Google font that isn't in Dirigible Fonts yet.
  • Adobe Fonts or another service gives you an embed code instead of font files.
  • Making the block editor show the same web fonts as the live site.

Switch to Dirigible-hosted fonts

If every Google font on your site is also in Dirigible Fonts, the site can serve those fonts itself, automatically or from Appearance → Hosted Fonts, with Undo. This is part of Dirigible Fonts: see Switch from Google Fonts.

Tips

  • Use Dirigible Fonts and Styles → Fonts when the family is available there. Those fonts are hosted on your site, so visitors don't connect to another server for them.
  • Include only the weights you use in the Google link. Extra weights slow every page.
  • After publishing, reload the live site and the block editor to check that the font loaded.
  • Don't load the same font in both fields. Pick one method per font.

Settings

Embed fonts

Optimized font URL

A font stylesheet URL (Google Fonts CSS2, or a Typekit kit's .css link). The theme preloads it on every page so text shows at once and the fonts swap in as they arrive.

Generic font embed

Paste a full font embed, such as a Typekit or Adobe Fonts link tag. Use this when Optimized Font URL does not cover your font provider. A plain Typekit stylesheet link pasted here moves to Optimized Font URL by itself within a day, so it no longer holds up the page; a notice offers Undo.

Built by Dirigible Studio. Get in touch