Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Themes /

Discuss SilverStripe Themes.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Adding typekit fonts

Go to End

3 Posts   1508 Views


Community Member, 11 Posts

16 April 2013 at 3:33pm

Hello every one,

I tried to embed my TYPEKIT fonts to SilverStripe.

I tried both requirements command in the controller and
editing template directly but it didn't work.

Does anyone knows how to do that?


the problem are script tags that need to be called to authorize the font
Here it is what typekit gives you:

<script type="text/javascript" src="//"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>

Optic Blaze

Community Member, 190 Posts

17 April 2013 at 9:37am


Post your .ss file code please. I just want to see what you have all got in there before i comment further.

Nobrainer Web

Community Member, 138 Posts

18 April 2013 at 9:00am

Just add to the top of your themes/design/templates/ file, should look something like:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "">
<html xml:lang="da-DK" xmlns="">
<script type="text/javascript" src=""></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>

Remember to allow access from the urls you are viewing the site at in your typekit. (After update there can be a short delay before it actually works)