Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

Saira Chaudhry
Saira Chaudhry
9,526 Points

Typekit Tisa Web Pro in CSS course not working

Hi,

Am I right in thinking that in order to use the javascript code for embedding webfonts from Adobe Typekit, that you need to specify a web server address and not be able to test locally on your machine? I've tried to work along side Guil's 'Web fonts' video near the end by adding the js code in the html and then calling the font in the title class of the style sheet and it doesn't work. Not even when I load the finished index.html in the 'final' folder of the project files.

Thanks! Si

2 Answers

Lorenzo Pieri
Lorenzo Pieri
19,772 Points

Depending on the kind of code you are using, this could have happened:

jQuery (and some javascript, along with PHP and lot of others) are not recognized by the browser if they are set from a local machine (ergo your PC\MAC). To solve this you just need to turn your PC into a server (I use EasyPHP, but you can also use WAMP, XAMPP and many others). This way it should work.

Saira Chaudhry
Saira Chaudhry
9,526 Points

Hi Lorenzo,

Thanks for the reply. I haven't got to the stage of learning how to make the PC into the server. Just following through the course at the minute. It just means that that particular video, in a practical 'follow along' way is pointless. I'm sure I'll get around to using Typekit properly later. I just wanted to check that it wasn't a glitch.

Thanks again.