15. Theming

Chapter

  • 15
    1. The Core Themes Directory
      • Core Themes
      • Theme Engines
      • Test Themes
    2. Theme Administration
      • Enabling and Setting a Default Theme
      • Theme Settings
      • Installing a New Theme
      • Administration Theme
    3. Defining Theme Metadata (.info Files)
      • Required Properties
      • Additional Properties
      • Create Your First Theme!
    4. Working with Regions
      • Default Regions
      • Hidden Regions
      • Module-specific Regions
      • Regions and Your Theme
      • Using Regions vs. Hard Coding in Template Files
      • Layout Strategies
      • Creating New Regions
    5. Template Files
      • Common Core Templates
      • Overriding Template Files
      • Template Variables
      • Default Template Variables
      • HTML Attributes
      • Render Arrays
      • A Detailed Look at page.tpl.php
    6. Theme Functions
      • Common Theme Functions
      • Overriding Theme Functions
    7. Theme Hooks & Theme Hook Suggestions
      • What is a theme hook?
      • Theme Hook Suggestions
      • Suggestions and Template Files
      • Suggestions and Theme Functions
    8. Preprocess and Process Functions
      • Preprocess or Process
      • Changing Existing variables
      • Creating Custom Variables
    9. Managing CSS Files
      • Aggregation and Compression
      • Patterns and Naming Conventions
      • Adding, Removing and Replacing CSS Files
      • Managing Stylesheets in Your Theme
    10. Theming Forms
      • Using Form Alter
      • Using Preprocess Functions
      • Creating Template Files for Forms
      • Adding Alternate Suggestions for Theme Functions
    11. Working with Base and Sub-themes
      • Why use a base theme
      • Inheritance and How it Works
      • Finding a Good Base Theme
    12. Theme Settings
    13. Functions Every Themer Should Know
      • Working with URL's
      • Translatable Strings
      • Filtering Output
      • Formatting
      • HTML Attributes
      • File Paths
    14. Sustainability and Best Practices
      • Start With a Good Base
      • Override Template Files with Purpose
      • Do My Changes Belong in a Module?
      • Leverage Default CSS Classes

    Example theme files from the chapter available at Jacine's GitHub (read more about it).

  • Author(s)

  • Jacine Luisi