Closed (fixed)
Project:
Genesis
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Nov 2008 at 13:30 UTC
Updated:
26 Nov 2008 at 18:36 UTC
Custom templates (node-story.tpl.php) don't seen if placed in sub-theme folder, only in main Genesis theme folder?
Comments
Comment #1
Jeff Burnz commentedGood question - here's how its done:
1) First copy/paste the node.tpl.php from the main Genesis theme to your Subthemes folder.
2) Then, copy it AGAIN, and then re-name it to node-story.tpl.php.
Now you have both node.tpl.php AND node-story.tpl.php in your Subthemes folder.
This is how Drupal template suggestions work, i.e. this is not a limitation of Genesis, its just the normal way Drupal works. The root template (such as node.tpl.php or page.tpl.php etc) must exist in the same folder as the template suggestions template (such as node-story.tpl.php or page-front.tpl.php etc).
Also - always clear the theme registry when adding new templates, Drupal wont see them until you do (Performance settings > Clear cache data).
Comment #2
Jeff Burnz commented