Abrahamp Posted July 16, 2014 Share Posted July 16, 2014 (edited) Hi Few day ago Install the Universal Payment Module, It Work Great, but I have style problem with the module cause is not fix with my Theme I think to modify the css of the module, but it hasn't, I want to Know how to create the ccs and linked to the module. I check the other modules to see the config but i didnt find. I need Help to uderstand they use. Thanks Edited July 23, 2014 by Abrahamp (see edit history) Link to comment Share on other sites More sharing options...
Abrahamp Posted July 22, 2014 Author Share Posted July 22, 2014 Hi, I still looking a answer. Thanks Link to comment Share on other sites More sharing options...
vekia Posted July 22, 2014 Share Posted July 22, 2014 what kind of problems you've got with css and this module? can you say something more, please? (everythnig depends on it!) Link to comment Share on other sites More sharing options...
Abrahamp Posted July 23, 2014 Author Share Posted July 23, 2014 Hi, thanks for answer, the problem is that the module dont have css i know how create the css, but I dont know how to linked to the module where i put the <link rel....> thanks. Link to comment Share on other sites More sharing options...
vekia Posted July 23, 2014 Share Posted July 23, 2014 you don't have to put link rel in module displayHeader function (module must be associated with this hook) use this code: $this->context->controller->addCSS(($this->_path).'myFile.css', 'all'); where myFile.css is a file of your css stylesheet you can take a look how it works for example in homefeatured module (modules/homefeatured) Link to comment Share on other sites More sharing options...
Abrahamp Posted July 23, 2014 Author Share Posted July 23, 2014 you don't have to put link rel in module displayHeader function (module must be associated with this hook) use this code: $this->context->controller->addCSS(($this->_path).'myFile.css', 'all'); where myFile.css is a file of your css stylesheet you can take a look how it works for example in homefeatured module (modules/homefeatured) Thanks in the end I see that the styles was declared in the same archive. But i gonna do that you say, but this line go in the .php no in the .tpl right? Link to comment Share on other sites More sharing options...
vekia Posted July 23, 2014 Share Posted July 23, 2014 that's right this line must be a part of .php file inside displayHeader function Link to comment Share on other sites More sharing options...
Abrahamp Posted July 23, 2014 Author Share Posted July 23, 2014 that's right this line must be a part of .php file inside displayHeader function How i do if the module dont has the dissplayHeader function? Link to comment Share on other sites More sharing options...
Recommended Posts