we are currently developing a new design for our webstore, which is based on the current one, but we are expecting an interesting issue. All our modifications are stored in the custom.css file, which works well on the frontpage - http://www.avtomotive.si/V2/ , but when you try to visit any of the subpages (for example category page - http://www.avtomotive.si/V2/Podvozje-in ... pnevmatike), the custom.css doesn't load at all and it looks like the header gets loaded from the current webstore - http://www.avtomotive.si (accroding to base-href parameter in the <head> and no sign of custom.css reference).
I have tried adding custom.css to header.tpl and also added header.php the following code, but with no luck so far:
Code: Select all
$route = empty($this->request->get['route']) ? 'common/home' : $this->request->get['route'];
$css_file = str_replace('/', '_', $route) . '.css';
if(file_exists(DIR_TEMPLATE . $this->config->get('OPC050106') . '/stylesheet/' . $css_file)) {
$this->document->addStyle('catalog/view/theme/' . $this->config->get('OPC050106'). '/stylesheet/' . $css_file);
}
Thank you very much for your help!