Google Fonts, GDPR and Page Builder Add ons - Forum | JoomShaper
Solved SP Page Builder

Google Fonts, GDPR and Page Builder Add ons

Asked by Bertil Braun 4 years ago Last activity 4 years ago

Hello, I have the following problem:

in the EU the data protection GDPR has become very strict and no fonts are allowed to be linked to Google anymore. May be well-intentioned but to the misfortune of web designers

I have therefore switched off all fonts in the template, then moved the fonts locally to the server and linked them to the custom.css. Everything worked wonderfully.

I create the website for clients who are not always familiar with such things. They then work freely with the SP Pagebuilder. I assume that they also select fonts in the Page Builder via the font-family dropdown in the individual add ons. As soon as you do that, a Goolge-linked font is on board again with one click.

You can see it in the source code generated by the frontend-pages ( //fonts.googleapis.com ... ).

Is it possible to completely disable Google Fonts for Page Builder as well, so there's no risk of someone accidentally selecting them?

Again, I would like to access only the local fonts. Possibly with a relative path?
Can you please give me a tip?

Thank you for your help and greetings from Germany :)

Accepted answer

Marked as the solution
Paul Frankowski Senior Staff
4 years ago · edited

I cannot help you with php code customziation, sorry. Support Policy.

By now remove used fonts from Font-Family in addons and tell website editor to not use Google Fonts.


UPDATE >> SPPB 3.8.5 we added Google Fonts ON/OFF in Options

13 more replies

Bertil Braun

Hello, many thanks for your quick answer :)

Yes, for us Europeans it would be good in the long run if there were the option "Include fonts locally" in the standard.

But your solution is already a first help for me: I create the Joomla updates manually and then have to write down on my note to cut the link.

I'll try that out.

Thanks for the initial help.

You are doing a really good job, I have liked you in Google.
Thank you very much.

Bertil Braun

Hello I think the directories have changed

Under "components" I find: com_pagebuilder2
This directory is empty.

Under "administrator/components" I also find com_pagebuilder2.
But there are other files in it.

Can you please find me the new places where I can cut the fonts?

Thank you very much.

Paul Frankowski Senior Staff
4 years ago · edited

"com_pagebuilder2" - we don't have such a folder name, probably you renamed it few months ago, and forget.

we have and use only "com_pagebuilder" check again my screenshot (!)
this is from current version.

Schwyzer

Hi, in this case....my question:
My customer need his own font - PT Sans
Now I uesed this code in the custom css...

/ pt-sans-regular - latin /
@font-face {
font-family: 'PT Sans';
font-style: normal;
font-weight: 400;
src: url('../fonts/pt-sans-v16-latin-regular.eot'); / IE9 Compat Modes /
src: local(''),
url('../fonts/pt-sans-v16-latin-regular.eot?#iefix') format('embedded-opentype'), / IE6-IE8 /
url('../fonts/pt-sans-v16-latin-regular.woff2') format('woff2'), / Super Modern Browsers /
url('../fonts/pt-sans-v16-latin-regular.woff') format('woff'), / Modern Browsers /
url('../fonts/pt-sans-v16-latin-regular.ttf') format('truetype'), / Safari, Android, iOS /
url('../fonts/pt-sans-v16-latin-regular.svg#PTSans') format('svg'); / Legacy iOS /
}

.sppb-addon-title { font-family: "PT Sans";}

Is this now correct for Google or do I need also an API-Key?

Its quite difficult to understand all those things...

Thanks for your help.

Maggie

Bertil Braun

Hi Paul,

my mistake, I was accidentally FTPing in an older Joomla installation, I found the files.

Sorry for the confusion.

Bertil Braun
4 years ago · edited

Hi Maggie,

Paul can certainly tell you something about this. For example, I have always worked with existing fonts in the template, but then pulled them down from this link: https://google-webfonts-helper.herokuapp.com/fonts and embedded and linked them locally on the web server.
Then I cut the connection to Google.

I'm currently trying to figure out how to do this in Pagebuilder :)

Many greetings

Paul Frankowski Senior Staff

You don't need Google API to use Google Font file, if was downloaded and used from your hosting.
It's fully legal and Dsgvo law correct.

Schwyzer

ok....thanks for your answer......

Bertil Braun Asked this

Hello Paul,

We have tried to cut the connection between the Page Builder and the Google Font Server using the 3 files you mentioned above. With the template it was no problem before (as already written).

Unfortunately, this did not work in the Page Builder. Maybe we did something wrong? Can you please post a code example in the forum? The result should be that the fonts are no longer selectable in the font dropdown (e.g. in the Text Blog Addon).

Of course, it would be cool if the locally linked fonts in the template were selectable in the dropdowns instead... but that doesn't necessarily have to be the case. It would be quite sufficient if the connection to Google in the Page Builder could be cut to Goolge fonts. That would be a safe solution.

Many thanks for your help :)

Log in to reply.