Blocks and themes

Themes are a very important aspect of every website as they create the look and feel and are expected to convey a very intuitive and user friendly presentation of the underlying functionality.

Drupal's theme layer is very flexible and powerful, among many things it is composed from a collection of web assets like CSS, JavaScript, images, and of course the HTML template layouts.

Blocks

When looking at a website, it is often very common to notice a sort of pattern that emerges in the overall website's layout. Taking the US government's white house website (http://whitehouse.gov) for example, we can break it's layout into the following parts:

  • The header which is at the top has to the left of it the White House's title, if so to say, ...

Get Drupal 7 Media now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.