07-27-2023, 12:18 AM
I'm new in prestashop. I created my css file and want to add it to prestashop theme. How can i add the new fill and make prestashop read the file in the header section? In forums i see that they said to add it to hookheader , i tried to add it to some module and do the following:
1) add to the theme header file `{hook h="myCssHook"}`
2) add to some rendom module function:
public function myCsshook(&params)
{
$this->context->controller->addCSS(($this->_path).'prestashop/myshop/theme/css/myoverride/myCsstheme.css', 'all');
}
3) in the module installition copy and add:
|| $this->registerHook('myCssHook') == false
and it didn't work. I'm using prestashop 1.6.1.1
1) add to the theme header file `{hook h="myCssHook"}`
2) add to some rendom module function:
public function myCsshook(&params)
{
$this->context->controller->addCSS(($this->_path).'prestashop/myshop/theme/css/myoverride/myCsstheme.css', 'all');
}
3) in the module installition copy and add:
|| $this->registerHook('myCssHook') == false
and it didn't work. I'm using prestashop 1.6.1.1