Hi there

I'm building a new theme as a variation of the "clean" theme. I've created the new theme (firetheme) in the subtheme folder: sites/default/themes/clean/subtheme/firetheme.

I've created my own versions of page.tpl.php and block.tpl.php within this folder, and they are overriding the default files found in sites/default/themes/clean, as expected. However my version of node.tpl.php is not overriding the original, and I don't know why.

I've enabled "Rebuild theme registry on every page", but it hasn't made any change. I've restarted apache, and restarted my laptop. The subtheme version of node.tpl.php is not being recognised.

Can anyone help? Why is this file not being found when page.tpl.php and block.tpl.php are?

thanks in advance!

Comments

Jeff Burnz’s picture

By any chance is this actually a suggestion you are using - such as node-[type].tpl.php? If it is then you need a node.tpl.php in the same directory (only for Drupal 6).

Mr Cronk’s picture

Hi Jeff

I'm actually using node.tpl.php - no override of this. The changes I want to make are to apply to all nodes. So the file is just called node.tpl.php.

However, there have been developments - the changes I've made to the subtheme node.tpl.php are now being seen. I don't understand this. Before, the node file in the parent directory was the only one being recognised - I tested this by making changes to both files. Now the node file in the subtheme is being recognised. The filenames have remained the same. In fact, I've been working on css changes since then, so the content hasn't changed either.

They definitely were not being seen before. I checked very carefully. I'm happy because I can now build my theme in the way I should, but I'd very much like to know why this happened...

Any ideas?

CD’s picture

I am using zen and node.tpl.php does not work. I tried page--node.tpl.php and it works fine

installero’s picture

> However, there have been developments - the changes I've made to the subtheme node.tpl.php are now being seen. I don't understand this.

Had the same issue with my page.tpl.php file and having with node.tpl.php file now. Drupal can not see sites/all/themes/mytheme/node.tpl.php

Any comments would be great!

CD’s picture

Hey, I'm quite new to all of this:-) I'm trying my best to give back now after I've had so much help from others here. I will try to think of what the issues may be for you:-)!!!

twig1gy’s picture

Just a quick note -- this saved me some heartache. Thanks!

Hillary

Mr Cronk’s picture

Glad to hear that Hillary. What was your situation? I still find the file hierachy a bit unpredictable sometimes. What was your problem and how did this help?

Grondhammar’s picture

Anyone found a solution to this? I'm attempting to use a Zen subtheme and am having the same issue. I can modify and see changes on every other template file in my subtheme (html, region, page, block).

Any help would be really appreciated. Guess I'll try Stark since I'm not too far along...

edit: page--node.tpl.php just made the entire page disappear for me