Allow to self-host google fonts in Replica PRO theme instead calling google fonts API (GDPR issue)
Permalink Browser Info Environment
Dear xanweb support team,
Would it be possible for you to add a feature in your theme to self-host specific Google fonts, or even if you could provide a simple guide on how to configure it? It would be of great help!
Due to the GDPR restrictions and a recent court decision precisely about this point, I am asking. (self-hosting allowed, call the Google Fonts API not allowed).
I found an old post from 2018 where this had been discussed initially, but without a conclusion. The guys had been referring to the individual theme creators.https://archive.concretecms.org/community/forums/themes/gdpr-dsgvo-a...
Many thanks for your help. It is really causing me a headache, and I assume there are others with the same situation and problem.
Kind regards,
Christian
Would it be possible for you to add a feature in your theme to self-host specific Google fonts, or even if you could provide a simple guide on how to configure it? It would be of great help!
Due to the GDPR restrictions and a recent court decision precisely about this point, I am asking. (self-hosting allowed, call the Google Fonts API not allowed).
I found an old post from 2018 where this had been discussed initially, but without a conclusion. The guys had been referring to the individual theme creators.https://archive.concretecms.org/community/forums/themes/gdpr-dsgvo-a...
Many thanks for your help. It is really causing me a headache, and I assume there are others with the same situation and problem.
Kind regards,
Christian
Type: | Discussion |
---|---|
Status: | Resolved |
Dear Xanweb Support team,
this did the trick - many thanks! Working as it should.
This might be helpful for some others as well, I assume.
Kind regards,
Christian
this did the trick - many thanks! Working as it should.
This might be helpful for some others as well, I assume.
Kind regards,
Christian
Hallo,
habe leider das Problem, dass ich nicht alle Fonts lokal einbinden konnte oder ich es zumindest nicht 100%ig beweisen kann.
Ich habe alle genutzen Fonts wie in der Anleitung beschrieben eingebunden (werden auch angezeigt und umgesetzt). Allerdings finde ich keine Möglichkeit den Standardfont Roboto für die Textformatierung "normal" zu ändern.
Wenn ich mir den Quelltext der Seite ansehe, taucht ein verweiß zu gstatic.com auf (siehe Bild). Wie kann ich sicherstellen, dass kein Zugriff auf externe Googleseiten erfolgt?
mfg
Thomas
habe leider das Problem, dass ich nicht alle Fonts lokal einbinden konnte oder ich es zumindest nicht 100%ig beweisen kann.
Ich habe alle genutzen Fonts wie in der Anleitung beschrieben eingebunden (werden auch angezeigt und umgesetzt). Allerdings finde ich keine Möglichkeit den Standardfont Roboto für die Textformatierung "normal" zu ändern.
Wenn ich mir den Quelltext der Seite ansehe, taucht ein verweiß zu gstatic.com auf (siehe Bild). Wie kann ich sicherstellen, dass kein Zugriff auf externe Googleseiten erfolgt?
mfg
Thomas
Here is a way to achieve the usage of a local font.
- Create a CSS file under replica pro package ( e.g. packages/xw_replica_pro/css/new_font.css)
- Move your font file at the same location of the CSS file ( e.g. packages/xw_replica_pro/css/new_font.woff2 )
- Edit the CSS file and insert the following snippet (Make sure to change the font family, and the format to match your own font).
The snippet:
- Now navigate to the Replica Pro Option > Additional Fonts, and add a new font.
- The Display Name and the CSS section will be filled like before, just for the link you have to put the URL of the created CSS file, following the examples above, the link should be filled like this:https://replica-pro.xanium.io/packages/xw_replica_pro/css/new_font.c... , don't forget to change "https://replica-pro.xanium.io" with you own website.
- Now you good to try the font.
Kind Regards,
Xanweb Support Team