Jump to content

I want customize a module


Max134

Recommended Posts

Hi

 

I create a theme (mytheme) and I want to change some modules, for example blocklanguages, so I did this:

 

copy blocklanguages folder from modules to themes/mytheme/modules

 

then I change blocklanguages.tpl , it works !

 

But now the problem is, I need to add a javascript file, so I open blocklanguages.php, and look for this code and add this line of code Tools::addJS($this->_path.'lang.js'); as you can see, but it doen't works , when I enter in my site, it doesn't appears the file lang.js

 

function hookHeader($params)

    {

        Tools::addCSS($this->_path.'blocklanguages.css', 'all');

        

        Tools::addJS($this->_path.'lang.js');

    }

 

I hope someone can help me !

 

Thanks in advance.

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