Why node--type.tpl.php is not working? I've cleared drupal cache 100 times no results. Is there something else i must to do?

3 Answers 3


Overriding node templates are done by placing node--'nodetype'.tpl.php templates inside your custom theme folder. If the template isn't accepted after cache clear, check if the Machine name on admin/structure/types is the same as 'nodetype'.


Make sure you put node--underscores_between_words.tpl.php and saved it in your active theme directory.

  • in my case its news content type. i've used node--news.tpl.php and its not working Commented Aug 7, 2011 at 17:16
  • are you trying to style the page or the nodes? Commented Aug 7, 2011 at 17:35
  • im trying to style the node. page--front.tpl.php and so works as intended, but node--type.tpl.php not... Commented Aug 7, 2011 at 17:43
  • maybe try node--news--page.tpl.php or try node--idnumber.php Commented Aug 7, 2011 at 18:07
  • Is the Machine name corresponding to the type on the tpl.php file?
    – JurgenR
    Commented Aug 7, 2011 at 18:13

To override the node templates using node--type.tpl.php in your theme you need to also make sure that your theme overrides the system node.tpl.php template; this can just be a copy of the system node.tpl.php file in your theme if you don't wish to change it. Without it, any other node templates in your theme will be ignored.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.