Skip to content

Instantly share code, notes, and snippets.

@tamboer
Created April 3, 2014 09:04
Show Gist options
  • Select an option

  • Save tamboer/9951020 to your computer and use it in GitHub Desktop.

Select an option

Save tamboer/9951020 to your computer and use it in GitHub Desktop.
Drupal-theme
https://drupal.org/node/104319
Theming blocks individually, by region, or by module
Last updated May 22, 2013. Created by joachim on December 20, 2006.
Edited by batigolix, Delphine Lepers, jamix, chrisjlee. Log in to edit this page.
Designers can create multiple tpl.php files for blocks based on the specific block, the module that created the block, or the region that the block appears in.
Template suggestions
Drupal 7
In Drupal 7 template files are searched in the following order:
block--block--[block-id].tpl.php
block--[module]--[delta].tpl.php
block--[module].tpl.php
block--[region].tpl.php
block.tpl.php
If the block delta key uses a hyphen, (-), replace this with an underscore (_).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment