Closed (fixed)
Project:
Blueprint
Version:
6.x-1.2
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Jun 2009 at 15:41 UTC
Updated:
25 Aug 2009 at 21:10 UTC
Theme says it supports sub-themes, but I haven't been able to see how. If you rename your Blueprint subfolder (and name of theme in the .info file), functions don't get called correctly, and lots of errors ensue. If you don't rename it, you can't have more than one.
I could not find any instructions on the proper way to have subthemes for Blueprint. Whenever I need to work on another, I have to remove existing subthemes from the directory, so can only test one at a time, and can only use one at a time (per site).
Comments
Comment #1
bradweikel commentedI just did this for the first time, and thought I'd share my experience...
The key to understanding sub-themes is to understand that the primary purpose of a subtheme is to be able to build on top of a contributed theme without hacking the theme itself, which would make it hard to integrate updates by the theme contributor. So you create a subtheme and leave the base theme alone. (Another use is to have alternate versions of closely related themes, particularly on a multisite setup).
Steps for creating a sub-theme of blueprint:
That's it. You have a subtheme, although it doesn't do anything yet. Moving forward, the key is to avoid making edits in the /blueprint folder. Instead, override pieces of the theme in your /my_theme folder. In some cases, such as .tpl.php files, you may need to copy the entire file into your subtheme and edit it. In other cases, as with CSS files, you'll just create a new file and override specific attributes (you also need to add the CSS paths to your .info file).
More info on subtheming is here: http://drupal.org/node/225125
To module maintainers - I'm not marking this as fixed because I think you should include a link to this comment on the Blueprint homepage, where you say "support for sub themes".
Comment #3
metastate commentedI am pretty sure you don't need "engine = phptemplate" in the my_theme.info file, since that is already declared in blueprint.info.