Optional Google font parameters.

Issues related to previewing and publishing your web site.
Post Reply
fender360
 
 
Posts: 11
Joined: Sun Jul 14, 2024 11:35 pm

Optional Google font parameters.

Post by fender360 »

Hi. How do I get display=block into Google fonts optional parameters? I've tried what is described in the documentation as seen in the image attached, and also the actual code from the font parameters. But these don't work. They do not make into the CSS font file. I have to manually edit the css file.Image
User avatar
crispy68
 
 
Posts: 2912
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: Optional Google font parameters.

Post by crispy68 »

It seems to work for me. It doesn't go into the CSS font file. It is added to the link reference to the google font in the html code in the head section.

example:

Code: Select all

<link href="https://fonts.googleapis.com/css2?family=Exo+2:wght@100..900&amp;display=block&amp;display=swap" rel="stylesheet">
fender360
 
 
Posts: 11
Joined: Sun Jul 14, 2024 11:35 pm

Re: Optional Google font parameters.

Post by fender360 »

Thanks but don't you have to manually edit it in. I'd like to avoid manually editing after each page publish. Docs said it should work the way I did it. Cheers.
fender360
 
 
Posts: 11
Joined: Sun Jul 14, 2024 11:35 pm

Re: Optional Google font parameters.

Post by fender360 »

Also, I don't have a link to my fonts because they get automatically published in a css file. Each subdiectory/subfolder duplicates this same css file.
fender360
 
 
Posts: 11
Joined: Sun Jul 14, 2024 11:35 pm

Re: Optional Google font parameters.

Post by fender360 »

here is the html:
Image
fender360
 
 
Posts: 11
Joined: Sun Jul 14, 2024 11:35 pm

Re: Optional Google font parameters.

Post by fender360 »

I'm using version 19.2.2
User avatar
crispy68
 
 
Posts: 2912
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: Optional Google font parameters.

Post by crispy68 »

Are you hosting the fonts on your server or using Googles servers? Link to your page?
User avatar
BaconFries
 
 
Posts: 5640
Joined: Thu Aug 16, 2007 7:32 pm

Re: Optional Google font parameters.

Post by BaconFries »

Docs said it should work the way I did it.

What docs are you referring to within the software or from Google?.
As crispy68 how are you trying to use/insert the font(s). From you screenshot it doesn't look like you have inserted the fonts via the software. If you have inserted the css file yourself then the software cannot modify in anyway as it has noway to read it so this explains why you have to manually edit the said file. If you need help the see the following:

Image

How do I share my project to get help?
fender360
 
 
Posts: 11
Joined: Sun Jul 14, 2024 11:35 pm

Re: Optional Google font parameters.

Post by fender360 »

Thanks for helping. I'm working on a Demo version. Here is the missing info you guys requested:
Image
Image
Image
Image
Image
Image
User avatar
BaconFries
 
 
Posts: 5640
Joined: Thu Aug 16, 2007 7:32 pm

Re: Optional Google font parameters.

Post by BaconFries »

Please see the following for help this is asked so we can actually load your project (.wbs) ourselves into the software as just viewing screenshots doesn't help!. Please also note that help is for licenced users of the software.
Image

How do I share my project to get help?
fender360
 
 
Posts: 11
Joined: Sun Jul 14, 2024 11:35 pm

Re: Optional Google font parameters.

Post by fender360 »

Thanks. Will do.
BTW: I had to enter my order number to join the forum. So licensed = true
fender360
 
 
Posts: 11
Joined: Sun Jul 14, 2024 11:35 pm

Re: Optional Google font parameters.

Post by fender360 »

Does anyone know where to specify display=block for local google fonts?
User avatar
crispy68
 
 
Posts: 2912
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: Optional Google font parameters.

Post by crispy68 »

In my test, it does not appear that additional parameters are added if you are hosting Google fonts locally.

Pablo should be able to confirm this. Up to him if this can be added.
User avatar
crispy68
 
 
Posts: 2912
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: Optional Google font parameters.

Post by crispy68 »

curious...what is your reasoning for needing to add this since display=swap is already being used?
Post Reply