kmk Posted December 26, 2018 Share Posted December 26, 2018 If I have more than one themes, when should use parent setting? I don´t know what is the difference.... Link to comment Share on other sites More sharing options...
bfarber Posted December 26, 2018 Share Posted December 26, 2018 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 More sharing options...
kmk Posted December 30, 2018 Author Share Posted December 30, 2018 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? Link to comment Share on other sites More sharing options...
bfarber Posted December 30, 2018 Share Posted December 30, 2018 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 More sharing options...
Meddysong Posted December 30, 2018 Share Posted December 30, 2018 Have a look at this site, @kmk: https://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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.