When I create a new subtheme of Bartik I have the following errors:

* Notice: Undefined index: featured in include() (line 151 of /var/www/sites/all/themes/bartik/page.tpl.php).
* Notice: Undefined index: triptych_first in include() (line 204 of /var/www/sites/all/themes/bartik/page.tpl.php).
* Notice: Undefined index: triptych_middle in include() (line 204 of /var/www/sites/all/themes/bartik/page.tpl.php).
* Notice: Undefined index: triptych_last in include() (line 204 of /var/www/sites/all/themes/bartik/page.tpl.php).
* Notice: Undefined index: footer_firstcolumn in include() (line 230 of /var/www/sites/all/themes/bartik/page.tpl.php).
* Notice: Undefined index: footer_secondcolumn in include() (line 230 of /var/www/sites/all/themes/bartik/page.tpl.php).
* Notice: Undefined index: footer_thirdcolumn in include() (line 230 of /var/www/sites/all/themes/bartik/page.tpl.php).
* Notice: Undefined index: footer_fourthcolumn in include() (line 230 of /var/www/sites/all/themes/bartik/page.tpl.php).

The subtheme is a simple one. No customizations beyond creating the subtheme:

--------------------------------------------------------------------------------
name = Redendor
description = Customizing subtheme.
version = 0.1
core = 7.x
engine = phptemplate
base theme=bartik

stylesheets[all][] = css/empty.css
--------------------------------------------------------------------------------

In Garland it works (but looks ugly :-))

CommentFileSizeAuthor
#16 issue-1145374.patch696 bytesTorenware
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bleen’s picture

@juarezr ... please clear your cache and check one more time. You happened to be trying this just as some changes were being made yesterday to the location of page.tpl.php

jensimmons’s picture

Yes. Or can someone else test this out. Use Bartik as a parent, and see if you run into any problems.

Jeff Burnz’s picture

I've done a bunch of them, no problems to report as yet. I'm not sure if docs exist for setting up a colorable subtheme, if not these should be written.

jensimmons’s picture

Title: Problem when making a subtheme of Bartik » Write docs on how to subtheme Bartik, esp w/ color module support
Category: bug » task

Ah, a documentation task.

The bug report is > won't fix. ('Cause there isn't a bug)

jensimmons’s picture

Component: Code » Documentation

.

jensimmons’s picture

Status: Active » Closed (won't fix)

I don't know that there is anything special to subtheming Bartik that's any different from subthemeing another Drupal theme. So.... docs?

I'm setting this to won't fix. I don't think there's an issue here.

rorymadden’s picture

I encountered this as well and since this is the first link on google I thought I'd post this for those that get the errors above and don't know whats happening.

Sub-themes do not inherit regions from the parent theme. Therefore if you create a sub-theme you need to re-specify all of the regions again. Also Color module integration is not inherited. The easiest way to create a sub-theme is as follows (this works for me, feel free to correct me if I am wrong):

1. Copy the bartik theme from \themes
2. Paste it into \sites\all\themes
3. Rename the folder to mytheme (obviously replace mytheme with whatever name you like)
4. Open the folder and rename bartik.info to mytheme.info
5. Delete the template.php file (or empty its contents)
6. Open mytheme.info and add the line "base theme = bartik" under the line core = 7.x
7. Find the line stylesheets[all][] = css/style.css and rename style.css to mytheme.css
8. Navigate to mytheme/css and rename the style.css file to mytheme.css

Now go ahead and change mytheme.css and the files in the templates folder to customise the look and feel.

As I said this works for me. Hope it helps

jensimmons’s picture

Project: Bartik » Drupal core
Version: 7.x-1.x-dev » 7.x-dev
Component: Documentation » Bartik theme
Status: Closed (won't fix) » Active

Reading this again, I see that is was about writing documentation! Yes, let's do that.

tim.plunkett’s picture

I can work on some docs, but in the meantime I wanted to chime in on what is actually needed to make a theme recolorable.

The css/colors.css file and the entire color directory are needed.
The THEMENAME.info file must have base theme = bartik, but should not have the package, version, or engine lines. The call to css/colors.css must stay in the THEMENAME.info file.

Those are the only files that MUST be present. If template.php is copied over, all the function calls must be changed from bartik_ to THEMENAME_.

Since there are almost daily changes to D7, I have a symlink to the css/colors.css file and the color directory, but they could theoretically be copied over.

So yeah, maybe I shouldn't be the one writing the docs. I made that sound really complicated.

Jeff Burnz’s picture

Component: Bartik theme » documentation

The new D7 theme guide is kicking off, so the docs could go there: http://drupal.org/node/925532

jhodgdon’s picture

Project: Drupal core » Documentation
Version: 7.x-dev »
Component: documentation » New documentation

If this is to go into the Handbook, then it belongs in the Documentation project issue queue, not the Drupal Core issue queue.

arianek’s picture

Issue tags: +theming, +d7docs

tags

arianek’s picture

Component: New documentation » Correction/Clarification

hey jen - i was looking for bartik docs so i could alias the landing page for them to http://drupal.org/documentation/themes/bartik if there are any (or in the future they're created, let me know so i can do that!) thx!

Carolyn’s picture

Status: Active » Needs review

I added basic instructions for sub-theming Bartik under the Bartik theme page. I also made a page about floating images to the right or left, since that is a common feature users ask for.

http://drupal.org/node/1114190
http://drupal.org/node/1114278

These are aimed at users who don't necessarily want to become theming experts, but want to adjust their default theme a little bit.

rogical’s picture

I also encountered this problem by solving it with clearing cache :)

problem not solved

Torenware’s picture

FileSize
696 bytes

Clearing the cache did not do a damn thing for me.

I've done the following at this point:

1. I've followed the instructions at http://drupal.org/node/1114190. The subtheme puts up the color admin UI, and it remembers the colors I set in the custom color set.
2. I've cleared the cache (drush cc all) repeatedly.
3. I've added the template.php functions for hook_process_html and hook_process_page as suggested in a related issue.

I think this is actually a bug in the color module. I enclose a patch that resolves this issue for me. This has been logged against the Color Module as #1145374: Subthemes overriding color module supporting modules do not respect color settings.

rogical’s picture

patche was applied, but problem still exists.
solved. the region setting should be included in the sub .info file.

arianek’s picture

Issue tags: +Bartik

tags

musicnode’s picture

Status: Needs review » Closed (works as designed)

Hi,

I followed the instructions at http://drupal.org/node/1114190 and sub-theming with color module support seems to work fine with Drupal 7.8 on a localhost environment. Thus, I am closing this issue.