Max134 Posted September 28, 2011 Share Posted September 28, 2011 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 More sharing options...
Max134 Posted September 29, 2011 Author Share Posted September 29, 2011 Hi Nobody knows the answer ? 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