Jump to content

[SOLVED] Add CSS to only some pages of a Module


kornett

Recommended Posts

Hi! Currently I'm using the following to add css to my module....

 



public function hookDisplayHeader()
{
$this->context->controller->addCSS($this->_path.'css/mymodule.css', 'all');
}


 

But I noticed that the CSS is added to ALL pages of prestashop, is that what the "all" in the above line means?

 

Since it is causing compatibility issues with other modules, I'd like to add it just where my module is used.

 

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