Jump to content

how can I add js and css file to tpl


Recommended Posts

hi 

 

I try to add the js and css file in tpl fine I read lot off tips in formus but all that not worrk I adnt know why 

 

is there simple way to add js and css to my tpl file ?

 

this is my link 

 

C:\wamp\www\prestashop\modules\test\js

 

 

 

thanks 

Link to comment
Share on other sites

in your module's file, hookDisplayHeader method, use:

 

$this->context->controller->addCSS(($this->_path).'js/blockpermanentlinks.css', 'all');

$this->context->controller->addJS(($this->_path).'js/blockpermanentlinks.js', 'all');

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...