Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 12d 09h 11m 23s
Claim 50% off
Staff replied SP Page Builder

Google Font - SP Page Builder

Asked by Davide 1 year ago Last activity 1 year ago

Good morning, I'm going to crazy...

I've installed in "Font Book" Google Font.

If I select a font wiht a single word (ex. Heebo) it works correctly,
but if I use a font with more words (ex. Baloo Tamma 2) it doesn't.

Because in css I see
font-family: Baloo Tamma 2;
instead
font-family: 'Baloo Tamma 2';

How can I fix?

Thanks

7 replies

Paul Frankowski Senior Staff

Hi Davide,

I may have easy idea how to solve it,
can you only share link to zip file with "Baloo Tamma 2" fonts. I want to check one thing.

Davide Asked this

I haven't zip file 'cause I installed in your "Font Book"

Paul Frankowski Senior Staff
1 year ago · edited

Oh, OK. We will check it, but in the meantime,
that GF 'Baloo Tamma 2' for what HTML elements do you want to use it? All headers like h1, h2, h3 ??


As alternative , you can install zip with that font, then it will be loaded from your host (GDPR OK) not from Google servers. Then I can rename file and no problems.

Davide Asked this

Yes I use
headers like h1, h2, h3

Paul Frankowski Senior Staff

Thx, so as temporray (before next SPPB update) you have two options

By addind that extra Custom CSS line

#sp-main-body h1, h1, #sp-main-body h2, h2, #sp-main-body h3, h3, h4, h5 {font-family: 'Baloo Tamma 2', sans-serif;}

OR

By installing that font as renamed font file, and then Joomla will use, for example, baloo-tamma2 and will be OK. I can prepare ready zip that you can upload in "Font Book"


By now (1) the most easy one, and should work everywhere.

Davide Asked this

At the moment I solved with a stupid rule in ReReplacer
FIND
Baloo Tamma 2;
REPLACE
'Baloo Tamma 2';

but I'd like to understand, I think the your compiler doesnt't write " ' " at the start and end of font name

Paul Frankowski Senior Staff

If that works, great

Log in to reply.