Hello, I've built a sub-theme of Zen for my new website (in Drupal 6.10. At some point during development, the breadcrumbs were disabled and I can't figure out how to re-enable them. I notice that the "theme-specific configuration" box on Administer > Site Building > Themes is also gone, so I'm guessing it's related.

This is a development site and caching is disabled, so the theme registry shouldn't be a problem.

Comments

benjamin_dk’s picture

I had the same problem - zen subtheme, the breadcrumb + themespecifik settings disappeared. After I upgraded from Drupal 6.6 to 6.12 and upgraded most of my modules, I had the theme-settings back and I could enable the breadcrumb... Hope this can help you as well.

a.bond’s picture

Status: Active » Fixed

I still don't know what was going wrong, but after deleting and re-making my custom theme the breadcrumbs came back.

dafeder’s picture

I've had this problem when I forgot to rename functions in template.php that were still called STARTERKIT_whatever(). Rename, save than clear cached data in performance.

Colin_T’s picture

Status: Fixed » Active

I've got exactly the same problem (one site has always been on 6.11, one always on 6.12 with the same theme). I'm missing the theme specific configuration, and the breadcrumbs.

Seeing the above, I've tried copying the STARTERKIT theme, to a starter kit test theme by running

 cp --archive <path to>/themes/zen/STARTERKIT/ skt2
 cd skt2
 mv STARTERKIT.info skt2.info
 sed -e 's/STARTERKIT/skt2/' < template.php > template.php
 sed -e 's/STARTERKIT/skt/2' < theme-settings.php > theme-settings.php
 cp <path to>/themes/zen/zen/zen.css skt2.css
 cp <path to>/themes/zen/zen/layout-liquid.css layout.css
 cp /usr/share/drupal6/themes/zen/zen/print.css .
 cp /usr/share/drupal6/themes/zen/zen/html-elements.css .

Then editing the reference in skt2.info to point to skt2.css.

I still don't see the theme specific settings in skt that I do when I just enable STARTERKIT.

Any help gratefully received.

Colin_T’s picture

Status: Active » Fixed

OK - after re-reading my post I've spotted the error in the sed line & fixed it! Strange that I've made a similar mistake each time I tried it.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

tronathan’s picture

Specifically, the function

function THEME_settings($saved_settings) {

in the file

theme-settings.php

informs Drupal of the settings for the theme. In this function, the following line:

  // Get the default values from the .info file.
  $defaults = zen_theme_get_default_settings('dscpublic');

tells drupal to load the default settings from Zen, which contains code that instructs drupal to provide a breadcrumb for this theme.

If you don't rename the THEME_settings() function, drupal won't catch this hook and won't know to load zen's breadcrumb code when it loads the theme. That's why there are no theme-specific settings on admin/build/theme/THEMENAME/settings when you don't have this function in your theme-settings.php file.

picca’s picture

I had similiar problem and #7 comment solved it. It was because of my incaution. I developed theme "foo" and followed all steps by Zen's readme. But then I wanted to start foo's fork. So I just copied foo (to bar directory) and thought that it is ok. But it wasn't I didn't see breadcrumbs. You have to search & replace all 'foo' strings to 'bar' strings in every file of your new theme.

senortim’s picture

One additional note (from someone who just spent quite a bit of time on this): If you're upgrading your themes, beware that some FTP software (in my case Dreamweaver) folds theme files together. I was careful to merge my subtheme files, but the main theme had co-mingled Zen 1.2 and Zen 2.1 leading to confusing HTML.