So I am making blocks and viewing the page source when they're displayed, and for instance one has the id="block-views-first-row-footer-links-block"

so I make templates called the following: none will work(yes I am clearing the cache)...I am using drupal 7.12




what am I doing wrong here?

  • For the record, the id assigned to the wrapping div of a block does not necessarily have any relationship to the naming conventions you would use for block templates.
    – sheena_d
    Apr 25, 2012 at 1:36

1 Answer 1


There is a easier way to do this using Block theme. But in case you do not want to use it, you can create block template files in the following order.




More information can be found here.

  • does this "block--views-first-row-footer-links.tpl.php" not follow that format? The blocks--module--delta one?
    – A_funs
    Apr 24, 2012 at 23:07
  • I'm not sure about that. Is views-first-row-footer-links the name of your module? The best thing right now would be to try the third option. For e.g in block--footer-links.tpl.php, do you have a region named footer-links? Apr 24, 2012 at 23:20

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.