Copy link to clipboard
Copied
Hey everyone,
I've been trying for several hours now to embed a font in my Wix Studio website, as I've seen that it's possible via CSS.
I'm not at all experienced with CSS but tried to follow some tutorials, yet it just seems that even when I'm [hopefully] doing everything as shown on Adobe website, the fonts just won't import to the website.
I'm currently trying to add Kensington font to the website which didn't work at all, so I've tried importing Lust font, and it DID work, but didn't import as ITALIC.
Here's what I've added to the css.global panel:
@Import url("https://use.typekit.net/tie2ubf.css");
h1 {
font-family: "lust", sans-serif;
}
font-family: "lust", serif;
font-weight: 700;
font-style: italic;
}
---- Again, as mentioned, it did import LUST but not as Italic font.
and it didn't at all imported any other font that I've tried.
I could really use some help or know if there's any issue with importing and embedding fonts to websites in genral at the moment.
Thank you guys in advance!
Copy link to clipboard
Copied
OMG! Came back to report that after hours of trying it finally worked!
Here's the code I've used:
@Import url("https://use.typekit.net/aiv7ixt.css");
{ h1
font-family: "kensington", sans-serif;
}
.rich-text__text {
font-family: "kensington", sans-serif;
font-weight: 700;
font-style: normal;
/* To learn more about CSS classes, visit https://support.wix.com/en/article/css-editing. Write your CSS here: */
}
Copy link to clipboard
Copied
Hey!
I have the same issue... The font is not applied, but if I specify a color then only the color is changed. Did you also add this <link rel=stylesheet" blabla > in the advanced settings to <head>?
I only want to change the H1.
Thank you!
Copy link to clipboard
Copied
Hi
@lelelolo,
We're sorry to hear about the issue you're seeing. Could you please let us know where you are trying to embed the code? Can you please share the code with us to check?
Regards,
Tarun
Copy link to clipboard
Copied
Hi,
Thank you for reaching out! I try to embed the code in Wix Studio to "global.css"
The code i used:
Copy link to clipboard
Copied
Hi @lelelolo.
Thanks for your response. Is it possible for you to share the link for us to debug?
Regards,
Tarun