Help with Google Fonts, please

Very much a beginner’s question:
I have been trying to use a Google Font in my Default Page Template.

[REDACTED]

I have searched the forum and docs and cannot seem to find out why I can’t get it to work. I am re-doing my old Muse website and only using Backlight for the galleries.
If anyone has a step by step approach that any idiot (me) can follow, please lead me to it. I am about to rip out my hair…
Thanks

Hi,

We block links to the read-only forum intentionally. I’ve redacted your workaround to the old forum post.

Google Fonts should be a simple matter of adding fonts, then copying the link tag into the designated field in the page template. The link tag looks like this:

<link href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap" rel="stylesheet">

Then add the name to the font stack anywhere you can append to the font-family in the designer, e.g.:

'Open Sans'

Now, looking at Google Fonts today, I do see they’ve changed the embed code:

<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap" rel="stylesheet">

I don’t know what that “preconnect” link tag is about. Try to get by without it. If Google Fonts no longer works for whatever reason, then we’ll have to do an update to adjust or remove the feature from the designer.

You can also add the code manually via PHPlugins, so if the designer method doesn’t work (or if we need to remove it), then PHPlugins would be the recourse.

I did the above and no joy. I will try to not paste that reconnect link. Hopefully, that is the problem. I used Google fonts with Muse and Backlight 1 with no problems. That is why this is really driving me nuts.
I hope I can come back here and all is working.

That seems to have worked. I left out that first “preconnect” part, and it didn’t work. Re-pasted the whole link (including the preconnect part) and now it seems to be working. ??? I am not going to try to figure out why it is working. I have wasted a couple of hours of my life… :anguished:
Thanks!