Jump to content

Custom font from adobe typekit -javascript head


Recommended Posts

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 by lenikko (see edit history)
Link to comment
Share on other sites

  • 2 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...