Jump to content

RESOLVED Css Module Create


Recommended Posts

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 by Abrahamp (see edit history)
Link to comment
Share on other sites

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

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

×
×
  • Create New...