lenikko Posted November 16, 2012 Share Posted November 16, 2012 (edited) I try to figure out, how I can use my account for custom font from typekit (adobe). prestashop version 1.5.2 I have two line of javascript to put in the < head >, I did try direct on header.tpl but no sucess, Then I try to include in FrontCoontroller.php, but I don't understand how to do this, if for example my code is this, how can I do: <script type="text/javascript" src="//use.typekit.net/oxzztzazzz.js"></script> <script type="text/javascript">try{Typekit.load();}catch(e){}</script> I did create a js file (typekit.js) and add the "try{Typekit.load();}catch(e){}" But for the first line… ? any help will be nice ! thanks public function setMedia() { parent::setMedia(); Tools::addJS(_THEME_JS_DIR_.'typekit.js'); } Edited November 16, 2012 by lenikko (see edit history) 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...
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