The default stylesheet always loads [OpenCart Theming]

I just started designing for Opencart. The page here says

OpenCart uses a "default backup theme system." This means that if you are missing a file in your custom theme folder, it will look for the default theme main folder for the file.

Now I have created a folder stylesheet inside the template folder with all the files in the default directory. All css files except stylesheet.css are downloaded from my directory.

What am I missing? I checked the spelling of stylesheet.css and even re-created it many times, but still it loads from the default directory.

Can anyone help? enter image description here

+4
source share
2 answers

When OpenCart says it's coming back, it literally means the template folder, i.e.

/catalog/view/theme/your-theme-name/template/ 

The stylesheet folder is outside, so you need to add it manually to your <head> theme if you want to include a default stylesheet

EDIT

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 way there

+7
source

<link rel = "stylesheet" type = "text / css" href = "directory / view / theme / default / stylesheet / stylesheet.css" / ">

need to change in header.tpl

I copied it from the default directory

+1
source

All Articles