How do you create a subtheme for Zero point?
Different css, different header images.

Cheers
Miriam

Comments

florian’s picture

Put images in _custom folder and writhe css in custom-style.css. In fact you will need the same lines as in any "sub-theme" css, like ink.css for instance.

belong@mywebworkshop.com’s picture

I already have images in the custom folder for the first implementation of the theme.
A subtheme is an alternative implementaion of the theme with a different set of header images etc.

Since you can't subtheme zeropoint, it seems, you need to duplicate it.

This is my method :
1] duplicate the entire theme folder and rename the copy (as per usual for a subtheme)
2] edit the template.php file in the second instance to change references to zeropoint to zeropoint-theme2

Then a marker file so that when updating, the same changes can be made again in the template.php file.
__
I tried to treat it like a regular theme: created a new folder with a new .info file that declared zeropoint as the base theme. But the theme continues to use the main zeropoint files and not the subtheme files.
I just tried putting the modified template.php in the subtheme folder, but that killed the site entirely as it had already processed template.php and would not do it again.
I think it is the hard-wired references to the theme name in template.php that make subtheming not work (the function starting line 91).
__
It is a pity subtheming doesn't work as intended in Drupal as that is a much simpler and easier to maintain method that doesn't require messing with the template file.

Cheers
Miriam

florian’s picture

To have subthemes, the are two approaches:
1) The normal way of having subthemes in subfolders, each with it's own .info file;
2) The theme settings way (as 0 Point), which allows to change the subtheme in theme's settings.

I will think to a completely new way of doing things by combining the above two methods, in the next release.

belong@mywebworkshop.com’s picture

I could not find away to make the normal subtheme method work.

The subthemes could not find the _custom folder within the new subtheme folder.
The theme files for the subtheme did not override the base theme. I think because some theme addresses are hard coded into the template.php, as mentioned above.

Cheers
MIriam

florian’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)