I have just started on designing for Opencart. The page here says
OpenCart uses a "default theme fallback system". This means that if you are missing a file in your custom theme folder, it will search the main "default" theme folder for the file.
Now i have created a folder stylesheet inside my template folder with all the files in the default directory. All css files except the stylesheet.css loads from my directory.
What am I missing? I have checked the spelling of stylesheet.css and even re-created it many times but still it loads from default directory.
Can anyone help?
When OpenCart says that it falls back, it literally means the template folder, that is
/catalog/view/theme/your-theme-name/template/
The stylesheet folder is outside of that, so you would need to add that manually to your theme <head>
if you want to include the default stylesheet
If you want your stylesheet to be loaded, you need to edit the template in
/catalog/view/theme/your-theme-name/template/common/header.tpl
and change the path in there
< link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/stylesheet.css" />
needs to be changed in header.tpl
I had copied it from the default directory
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With