Typography is one of the fastest ways to give a theme a completely different personality. This guide covers all methods — from the Customizer, to Elementor global fonts, to self-hosting for GDPR compliance.
Changing the font via the Customizer
- Go to Appearance → Customize → Typography.
- You’ll typically see separate controls for Body Font, Heading Font, and sometimes Navigation Font.
- Each has a font family dropdown (powered by Google Fonts), a weight selector, and size controls.
- The live preview updates as you type. Click Publish when done.
Changing fonts in Elementor
If you’re using Elementor, font settings live in two places:
Per element (inline)
Select any text element in Elementor, go to Style → Typography, and change the font family, weight, size, and line height for that specific element.
Global fonts (recommended)
- Go to Elementor → Site Settings → Typography.
- Update the Primary Font and Secondary Font here.
- Click Apply & Save.
Global font changes cascade to every element using that font role — so one change updates your entire site.
Using a custom font not in Google Fonts
Add any font to your child theme using @font-face:
@font-face {
font-family: 'MyBrandFont';
src: url('/wp-content/themes/themezinho-child/fonts/MyBrandFont.woff2') format('woff2');
font-weight: 400;
font-display: swap;
}
body {
--font: 'MyBrandFont', sans-serif;
}
Upload the font files to your child theme’s /fonts/ folder via FTP.
Self-hosting Google Fonts (GDPR)
By default the theme loads Google Fonts from Google’s CDN. Under GDPR (and similar laws), this constitutes transferring user IP addresses to Google without consent. To avoid this:
- Install the OMGF – Optimize My Google Fonts plugin (free).
- Go to Settings → Optimize Google Fonts.
- Click Save & Optimize — the plugin downloads font files to your server and rewrites the enqueue calls.
After this step, no requests are made to fonts.googleapis.com or fonts.gstatic.com.
Typography tips
- Pairing rule of thumb: Use a geometric sans-serif (Inter, DM Sans, Plus Jakarta) for UI and a humanist or serif font (Lora, Fraunces, Libre Baskerville) for editorial content.
- Line height: Body text reads best at 1.6–1.75. Headings look tighter at 1.1–1.2.
- Font loading: Always include
font-display: swapto prevent invisible text during load — it significantly improves FCP scores.