9ashes Posted October 8, 2012 Share Posted October 8, 2012 Hello all, I'm looking to incorporate typekit fonts onto my prestashop but I'm a little lost as to how to do it. I've tried popping the typekit scripts into the header.php and setting up the CSS accordingly but to no avail... Can anyone help me?! Cheers! Paul Link to comment Share on other sites More sharing options...
9ashes Posted October 14, 2012 Author Share Posted October 14, 2012 *bumping it up* Can anyone help me on this? Link to comment Share on other sites More sharing options...
9ashes Posted November 11, 2012 Author Share Posted November 11, 2012 Seriously, does anyone have any advice for me? Link to comment Share on other sites More sharing options...
ollybowman Posted January 31, 2013 Share Posted January 31, 2013 Did you ever work out how to do this? I'm having the same problem. Link to comment Share on other sites More sharing options...
PotionsFactory Posted January 31, 2013 Share Posted January 31, 2013 Have you tried including the Typekit JS Reference to header.tpl in your theme? Link to comment Share on other sites More sharing options...
ollybowman Posted January 31, 2013 Share Posted January 31, 2013 Yes, tried putting it in various places in the header. The page doesn't load and I just end up with a blank screen. Link to comment Share on other sites More sharing options...
alejcak Posted January 31, 2013 Share Posted January 31, 2013 I've got the same problem - as soon as I add the JS, the site goes blank. Any one know how to fix this? Link to comment Share on other sites More sharing options...
ollybowman Posted February 1, 2013 Share Posted February 1, 2013 Any ideas, I just need to add the following two lines into the header, but it breaks the site if i put them in header.tpl. <script type="text/javascript" src="//use.typekit.net/vtj4fui.js"></script> <script type="text/javascript">try{Typekit.load();}catch(e){}</script> Surely this shouldn't be this difficult. Link to comment Share on other sites More sharing options...
PotionsFactory Posted February 1, 2013 Share Posted February 1, 2013 Loading typekit through a module seems to work just fine. I have no idea why it's breaking in header.tpl, though. Link to comment Share on other sites More sharing options...
ollybowman Posted February 1, 2013 Share Posted February 1, 2013 How do I load it in a module? Link to comment Share on other sites More sharing options...
PotionsFactory Posted February 1, 2013 Share Posted February 1, 2013 Actually, I'm wrong. You can put it in the header.tpl if you remove the try catch from the load script <script type="text/javascript" src="//use.typekit.net/vtj4fui.js"></script> <script type="text/javascript">Typekit.load();</script> Link to comment Share on other sites More sharing options...
ollybowman Posted February 3, 2013 Share Posted February 3, 2013 Thanks, that seems to work. Link to comment Share on other sites More sharing options...
S7 Media Ltd Posted August 19, 2013 Share Posted August 19, 2013 This has helped me too. Thanks! Link to comment Share on other sites More sharing options...
unalabs Posted July 12, 2014 Share Posted July 12, 2014 hello you can enclose your code in header.tpl {literal} <script type="text/javascript" src="//use.typekit.net/vtj4fui.js"></script> <script type="text/javascript">try{Typekit.load();}catch(e){}</script> {/literal} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now