Chapter 10. Working with Base Themes
Back when I was using WordPress to build most of my sites, the process of theming (i.e., applying the look and feel to a website) was relatively simple. Iâd mock up the design that I was thinking about, head over to wordpress.org, and find a theme that had the same basic structure as the site I was designing. Then Iâd hack apart the files, customizing it with my own CSS and images. Changing the HTML output was pretty simple as well; as long as I could pick out the few bits of PHP code that were making the site render content and not mess with them too much, it wasnât a big deal to customize container names or change the format of a given page.
When I did my first Drupal site, back when Drupal 6 was still relatively new, I thought the process would be about the same. I mocked up my template, went to drupal.org, and started searching for a contributed theme that looked sort of like what I was going for. Then I started trying to customize it according to what Iâd mocked up.
I cried my way through that first site. And drank more coffee than I care to talk about.
As I started to chat with other designers about this problem, I realized I wasnât alone. Drupalâs theme layer is impressive, flexible, and powerful; itâs also confusing as hell until you get used to it. The biggest layer of confusion is this: while in WordPress, itâs generally fine to download a theme package and start hacking it up to customize it, you donât want to do that ...
Get Design and Prototyping for Drupal now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.