I want to add a font to my website that I can access exclusively with a CSS stylesheet link. I’ve pasted the code that I have access to.
To be pasted into an HTML header:
To be added to CSS:
.titlinggothicfbextendedmedium {
font-family: “Titling Gothic FB Extd Med”;
font-style: Normal;
font-weight: Normal;
}
I’m not well versed in code and am not sure if there is something obvious I am missing for how to do this.
I tried the following code to add the stylesheet to the site and assign the font to a specific element.
$w.onReady(function addCss(TitlingGothic) {
var head = document.head;
var link = document.createElement(“”);
link.type = “text/css”;
link.rel = “stylesheet”;
link.href = TitlingGothic;
head.appendChild(link);
}
addCss(‘{l}’);
$w(“#text2”).html = <span style="font-family:"Titling Gothic FB Extd Med">${$w("#text2").text}</span>
;
});
Please let me know if you have any information for me!