Jump to content

Parent theme


kmk

Recommended Posts

This allows modified templates (including CSS files) to be inherited. This is useful, for instance, if you create a very custom theme and then want to offer 3 or 4 color variations of that customized theme. The parent contains all of the customizations, and then the children just modify the colors as appropriate, but otherwise inherit the main customizations from the parent.

Link to comment
Share on other sites

1. Can you explain a more detail

On 12/26/2018 at 10:14 AM, bfarber said:

but otherwise inherit the main customizations from the parent.

2.  So, if I want to give some customization, all are css code, I should to create other default theme then put under the parent theme of Default theme?

289553946_Themes2018-12-2921-34-36.png.0985e69c973903afe57b407fa8df25f8.png

Link to comment
Share on other sites

Say you have a parent with custom.css, misc.css and flags.css modified (just as an example).

Then this theme has a child theme. The child theme inherits all of those changed/modified CSS files, unless you modify the file in the child theme. For instance, if you modify custom.css in the child theme, the child theme no longer inherits this file from the parent theme.

You can use this to create a custom theme (the parent) and then several very similar variations (say, for instance, color variations) for users. You would put all of the colors into custom.css and then just adjust this one file for each child theme, but any changes that should apply to all of the themes (say, positioning, font sizes, etc.) you would make to the parent theme in a different CSS file.

Hopefully this helps.

Link to comment
Share on other sites

Have a look at this site, @kmkhttps://gagadaily.com/

You can see that this is a custom theme. If you scroll to the bottom, you can see that it's possible to "pick a theme". If you do this, some of the colours change but most of the customisation stays as it was. There's one custom theme here and then several children; one for each differently coloured version.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...