Skip to main content

The Theme System

  • Chapter
Pro Drupal Development
  • 348 Accesses

Abstract

Changing the HTML or other markup that Drupal produces requires esoteric knowledge of the layers that make up the theme system. The theme system is an elegant architecture that’ll keep you from hacking core code, but it does have a learning curve, especially when you’re trying to make your Drupal site look different from other Drupal sites. We’ll teach you how the theme system works and reveal some of the best practices hiding within the Drupal core. Here’s the first one: you don’t need to (nor should you) edit the HTML within module files to change the look and feel of your site. By doing that, you’ve just created your own proprietary content management system, and have thus lost one the biggest advantages of using a communitysupported open source software system to begin with. Override, don’t change!

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 34.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints and permissions

Copyright information

© 2007 John K. VanDyk and Matt Westgate

About this chapter

Cite this chapter

(2007). The Theme System. In: Pro Drupal Development. Apress. https://doi.org/10.1007/978-1-4302-0190-8_8

Download citation

Publish with us

Policies and ethics