Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
tried to theme node.tpl.php and node--[xxxxxx].tpl.php but it does not load.
how to make it load?
Comments
Comment #1
aschiwi CreditAttribution: aschiwi commentedDo you also have a node.tpl.php in your theme folder? You need to have in order for Drupal to load your node templates.
Comment #2
JustMe0815 CreditAttribution: JustMe0815 commentedyes i do.
Comment #3
aschiwi CreditAttribution: aschiwi commentedDid you clear your caches? What exactly is the name of your template? I tested it and I have a working node--news.tpl.php.
Comment #4
JustMe0815 CreditAttribution: JustMe0815 commentedwell, the cache did it :-)
Comment #5
aschiwi CreditAttribution: aschiwi commentedAlways clear the cache when adding templates and also whenever something's not working as expected :)