juansb
Forum Replies Created
Viewing 1 replies (of 1 total)
-
Hi
I guess that when you say “local” you mean self-host google fonts? I’m not sure that this can help you, but I self-host my own fonts in my site folders in the Cpanel and using Twentig, this is what I did:
1. in the CSS additional use “@font-face” to call the font https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face
2. Style your headings, body etc, here’s a global option:
: root { --global--font-primary: var(--font-headings,your-fontname-here-as-was-called, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif)!important; --global--font-secondary: var(--font-base, your-fontname-here-as-was-called, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif)!important; }I forgot to say that in appearance, twentig options, fonts — set your fonts to system fonts. This is important otherwise if you select any here the theme will override your self-hosted one.
This works very well for me. By the way, thank you to Twentig for such a great theme.
- This reply was modified 4 years, 4 months ago by juansb.
Viewing 1 replies (of 1 total)