Jump to content

Adding a script call on header.tpl


Recommended Posts

I am trying to install on a theme I am developing the code to call a js script on the header. I am looking for a Smarty function that returns the template`s url or the js folder, so I can add the relative route from there to my js file. Is this possible? Thanks.

Link to comment
Share on other sites

Hi... I am new to prestashop. I am trying to include a call to a script on the header.tlp. I am looking for an smarty tag that returns the theme URL so I can manually add the complementary path to my js file. There are similar functions like these on Wordpress such as this one:

 

<img src="<?php bloginfo('template_directory'); ?>/images/headers/image.jpg" />

It returns the template directory so I can add the relative path from there to my file to include on the header.

Is there a function that does the same job on Prestashop?

 

Thanks.

Link to comment
Share on other sites

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...