Post by jtermaat » Fri Jan 27, 2017 11:29 pm

My Opencart webshop has **v2.3.0.2**. After creating in a new folder **template_child**, in **catalog/view/theme/default/** and creating in folder template_child/ the file stylesheet.css nothing of the css is loaded.

Code: Select all

catalog/view/theme/theme_name/
    |-- style/stylesheet.min.css
    |-- template/
        |-- product/
            |-- product.tpl
            |-- category.tpl
        |-- information/
            |-- information.tpl
    |-- template_child/
        |-- stylesheet.css
For documentation I used the information from the site: [http://www.echothemes.com/docs-rhythm-c ... plate.html][1]


[1]: http://www.echothemes.com/docs-rhythm-c ... plate.html

For testing I use this css for the top navigation:

#top {
background-color: blue;
}

Anyone of you an idea why opencart does not load this child theme css?
Thanks in advance.

Newbie

Posts

Joined
Wed Jan 25, 2017 9:34 pm

Post by jtermaat » Sun Jan 29, 2017 9:05 pm

Is Child Theme anyway possible in v2.3.0.2 or is the whole information I read at http://www.echothemes.com/docs-rhythm-c ... plate.html a fake?

Newbie

Posts

Joined
Wed Jan 25, 2017 9:34 pm

Post by cyclops12 » Sun Jan 29, 2017 9:27 pm

If you want to add a new theme then This may be of help
As your not actually creating a new theme the way you are doing it at the moment

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by jtermaat » Sun Jan 29, 2017 11:48 pm

Oeps.. misunderstand my thread. I only want to save and use a child theme css so the original stylesheet.css will not be overwritten. Nothing more or less. So no other themes.

Newbie

Posts

Joined
Wed Jan 25, 2017 9:34 pm

Post by uksitebuilder » Mon Jan 30, 2017 1:29 am

So you still want the default css to work, you just want to add to it or change / override some of it styles?

If so, simply create your css file in the same directory as the default stylesheet.css

Then edit the header.tpl file and add a link to your stylesheet just after the default one.

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by JNeuhoff » Mon Jan 30, 2017 1:36 am

jtermaat wrote:Is Child Theme anyway possible in v2.3.0.2 or is the whole information I read at http://www.echothemes.com/docs-rhythm-c ... plate.html a fake?
The website is a fake, you should ignore it. It's the wrong way for the creation of a new web theme. There is no concept of child themes in OpenCart, nor is there any need for one.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am

Who is online

Users browsing this forum: CD-Nico and 47 guests