• Resolved logmachine

    (@logmachine)


    Hi,
    first of all: thanks for the great plugin!
    It all works really smooth, I just have one question.

    Due to GDPR (General Data Protection Regulation) in Europe, it’s not allowed to use google fonts without having the visitor accepting it previously. So I want to use local fonts. How do I stop the theme to “talk” to Google and use my local fonts (Open Sans: normal+700)?
    In an ideal world this would work without another plugin.

    Oh, and by the way: Is Twentig itself GDPR conform? I guess you don’t collect any data, right?

    Thanks in advance!

    By the way: I just ***** reviewed your plugin, so no need to ask ?? .

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Twentig

    (@twentig)

    Hi,

    Thanks for the kind words and review ??

    Unfortunately, currently, Twentig doesn’t have this feature. This is a great suggestion. I’ll transfer your request to the developer, but I’m unsure if this can be added anytime soon. For the moment, only the default theme fonts are not linked to Google.

    Twentig only contains links inside the WordPress Dashboard with UTM parameters towards twentig.com (allowed by the WordPress requirements). Moreover, the user can choose to enter its email address to subscribe to our newsletter (the user may opt-out of receiving any of these communications by clicking the unsubscribe link provided in any email we send).

    Have a nice day,
    Tom

    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 2 years, 10 months ago by juansb.
    Thread Starter logmachine

    (@logmachine)

    Thank you both for your reply, will try the solution from @juansb

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to use local fonts instead of Google?’ is closed to new replies.