Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
As mentioned in the Drupal 6 theme guide, whenever you add a new template or override to your theme you need to clear the theme registry for Drupal to know about it.
I had it -somewhat- working before, but that was in combination with the Zen-theme. It was a jungle, believe me. That's why I wanted to start clear off from the very beginning instead copying files and code without knowing what I was doing.
Copied the .info-code from the Zen-theme once again and it seems to be working now.
I have no idea what's the relevant difference between the two codes. This is how it looks like now:
; $Id: zen.info,v 1.10 2008/09/15 10:36:22 johnalbin Exp $
name = m2009
description = Read the <a href="http://drupal.org/node/226507">online docs</a> on how to create a sub-theme.
core = 6.x
engine = phptemplate
stylesheets[all][] = styles/algemeen.css
stylesheets[all][] = styles/dock.css
stylesheets[all][] = styles/leftslide.css
stylesheets[all][] = styles/webkit.css
stylesheets[all][] = styles/sifr.css
stylesheets[print][] = styles/algemeen.css
; Set the conditional stylesheets that are processed by IE.
conditional-stylesheets[if IE][all][] = ie.css
regions[left] = left sidebar
regions[right] = right sidebar
regions[navbar] = navigation bar
regions[content_top] = content top
regions[content_bottom] = content bottom
regions[header] = header
regions[footer] = footer
regions[closure_region] = closure
features[] = logo
features[] = name
features[] = slogan
features[] = mission
features[] = node_user_picture
features[] = comment_user_picture
features[] = search
features[] = favicon
features[] = primary_links
features[] = secondary_links
; Set the default settings to be used in theme-settings.php
settings[zen_block_editing] = 1
settings[zen_breadcrumb] = yes
settings[zen_breadcrumb_separator] = ' › '
settings[zen_breadcrumb_home] = 1
settings[zen_breadcrumb_trailing] = 1
settings[zen_breadcrumb_title] = 0
settings[zen_layout] = border-politics-liquid
settings[zen_rebuild_registry] = 0
settings[zen_wireframes] = 0
; Information added by drupal.org packaging script on 2008-09-15
version = "6.x-1.0-beta3"
core = "6.x"
project = "zen"
datestamp = "1221475935"
Changed the order of the last block (Information added by drupal.org packaging script on 2008-09-15) to find out if that was the problem. No difference. I hate it when things work or fail for no obvious reason.
So if someone could explain this, I will be listening.
I am having similar issues. I have a zen subtheme and have copied zen's page.tpl.php file into the subtheme folder, but can't see to get it recognized.
I've tried adding:
engine=phptemplate
I've made numerous attempts at rebuilding the cache.
Nothing working yet.
I notice in your example above you don't have the 'base theme' instruction. When I tried to remove this from mine, the thing fell over.
And hit clear cache. It fixed this problem for me.
Only took 2 hours for me to figure it out because I didnt' clue in I'd have to clear it even though I had caching turned off and 'rebuild theme registery' set to rebuild on every page load.
Comments
did you clear the theme registry?
As mentioned in the Drupal 6 theme guide, whenever you add a new template or override to your theme you need to clear the theme registry for Drupal to know about it.
--
Anton
I got it sorted - the lines
I got it sorted - the lines in the .info file were in the wrong order
Press Release 001 | Do Follow 001
Cleaned the theme registry
But still no progress.
Here's my .info-code. In case you see something in the wrong order: shout.
I'm following this video tutorial.
I had it -somewhat- working before, but that was in combination with the Zen-theme. It was a jungle, believe me. That's why I wanted to start clear off from the very beginning instead copying files and code without knowing what I was doing.
Now it's working
Copied the .info-code from the Zen-theme once again and it seems to be working now.
I have no idea what's the relevant difference between the two codes. This is how it looks like now:
Changed the order of the last block (Information added by drupal.org packaging script on 2008-09-15) to find out if that was the problem. No difference. I hate it when things work or fail for no obvious reason.
So if someone could explain this, I will be listening.
I am having similar issues.
I am having similar issues. I have a zen subtheme and have copied zen's page.tpl.php file into the subtheme folder, but can't see to get it recognized.
I've tried adding:
engine=phptemplate
I've made numerous attempts at rebuilding the cache.
Nothing working yet.
I notice in your example above you don't have the 'base theme' instruction. When I tried to remove this from mine, the thing fell over.
Anyway, any help much appreciated.
http://www.southweb.co.nz
Clear cache
Go to admin > settings > performance
And hit clear cache. It fixed this problem for me.
Only took 2 hours for me to figure it out because I didnt' clue in I'd have to clear it even though I had caching turned off and 'rebuild theme registery' set to rebuild on every page load.
Hate drupal sometimes :D