I am a Drupal beginner. I'm using Drupal 7. I created a blog using views. I'm trying to theme the blog node using node--blog.tpl.php but it doesn't work. When I change it to simply node.tpl.php it works. I don't know what is the problem. How can I make it work?

  • Clear Drupal cache .. It should work..
    – Anil Sagar
    Commented Apr 5, 2014 at 11:31
  • I cleared the cache and it didn't work. Commented Apr 5, 2014 at 12:01
  • When you say, "created a blog using views," are you trying to theme a teaser or other view of a node displayed in that view? If this is the case, the template name should be node--view--NAMEOFTHEVIEW.tpl.php or node--view--NAMEOFTHEVIEW--NAMEOFTHEDISPLAY.tpl.php...
    – Jimajamma
    Commented Apr 5, 2014 at 23:00

1 Answer 1


That's a known issue in some Drupal versions: Drupal will not pick up node--blog.tpl.php from your theme directory unless there is node.tpl.php too. Just place them both in your theme, clear cache, and you should be fine.

  • I placed them both in my theme, cleared the cache, and didn't work. Commented Apr 5, 2014 at 12:02

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.